You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is useful because the existing rule doesn't handle attributes
without values, e.g.
```
<input type="checkbox" checked />
```
Looking at the node I can't see any way to handle these correctly, so
being able to disable it is more useful.
Copy file name to clipboardExpand all lines: Readme.md
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,8 @@ then in your ~/.eslintrc:
24
24
25
25
`jsx/no-undef` also accepts a `varsIgnorePattern` which can be used to ignore certain undefined patterns (e.g. when using custom web elements).
26
26
27
+
`jsx/no-undef` also accepts a `ignoreAttributes` which can be used disregard linting of attributes (which incorrectly flags boolean attributes as undefined).
28
+
27
29
All those rules are defined by default though so you can leave out the ones you agree with.
0 commit comments