File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff 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-
6059If 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
6261For example, if you use [ emotion] ( https://emotion.sh/docs/introduction ) and its [ ` css ` prop] ( https://emotion.sh/docs/css-prop ) ),
6362add the following to your ` .eslintrc ` config file:
63+
6464``` js
6565...
6666" react/no-unknown-property" : [' error' , { ignore: [' css' ] }]
6767...
68-
6968```
7069
7170Now, the following code passes:
71+
7272``` js
7373var StyledDiv = < div css= {{color: ' pink' }}>< / div>
7474```
7575
76-
7776## When Not To Use It
7877
7978If you are not using JSX you can disable this rule.
You can’t perform that action at this time.
0 commit comments