Skip to content

Commit

Permalink
Merge pull request #4 from reactioncommerce/spencer-jsx-a11y-label-ha…
Browse files Browse the repository at this point in the history
…s-for-rule

feat: add label-has-for rule
  • Loading branch information
nnnnat authored Jul 17, 2018
2 parents 8f09645 + f0e2c22 commit ed627a3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions config.json
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,14 @@
"SwitchCase": 1
}
],
"jsx-a11y/label-has-for": [
"error",
{
"components": [ "Label" ],
"required": { "some": [ "nesting", "id" ] },
"allowChildren": false
}
],
"jsx-quotes": [
"error",
"prefer-double"
Expand Down

0 comments on commit ed627a3

Please sign in to comment.