Skip to content

Commit

Permalink
label nesting rule off from jsx-a11y/label-has-for
Browse files Browse the repository at this point in the history
  • Loading branch information
fenglish committed Dec 18, 2018
1 parent e768fd8 commit d14273d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,15 @@ module.exports = {
// We don't use display names for SFCs
'react/display-name': 'off',
// This rule is intended to catch < or > but it's too eager
'react/no-unescaped-entities': 'off'
'react/no-unescaped-entities': 'off',
// Default => "every": [ "nesting", "id" ]
// we must have one of them
// x-topic-search can't follow nesting rule
"jsx-a11y/label-has-for": [ 2, {
"required": {
"every": [ "id" ]
}
}]
},
overrides: [
{
Expand Down

0 comments on commit d14273d

Please sign in to comment.