Skip to content

Commit 0e72eb6

Browse files
committed
[Fix] markdownlint errors in rule documentation
1 parent 09b9dd0 commit 0e72eb6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

docs/rules/no-unknown-property.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -56,24 +56,23 @@ var AtomPanel = <atom-panel class="foo"></atom-panel>;
5656
- `enabled`: for enabling the rule. 0=off, 1=warn, 2=error. Defaults to 0.
5757
- `ignore`: optional array of property and attribute names to ignore during validation.
5858

59-
6059
If you are using a library that passes something as a prop to JSX elements, it is recommended to add those props to the ignored properties.
6160

6261
For example, if you use [emotion](https://emotion.sh/docs/introduction) and its [`css` prop](https://emotion.sh/docs/css-prop)),
6362
add the following to your `.eslintrc` config file:
63+
6464
```js
6565
...
6666
"react/no-unknown-property": ['error', { ignore: ['css'] }]
6767
...
68-
6968
```
7069

7170
Now, the following code passes:
71+
7272
```js
7373
var StyledDiv = <div css={{color: 'pink'}}></div>
7474
```
7575

76-
7776
## When Not To Use It
7877

7978
If you are not using JSX you can disable this rule.

0 commit comments

Comments
 (0)