Skip to content

Commit d686bbb

Browse files
authored
Merge pull request #296 from conveyal/jsx-label-stopgap
Disable nesting checks for jsx-a11y/label-has-for
2 parents 16c7713 + bb4fba9 commit d686bbb

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

lib/eslintrc.json

+11
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,17 @@
2323
"import/order": ["warn", {
2424
"newlines-between": "always"
2525
}],
26+
// turn off nesting requirement. See https://github.com/conveyal/mastarm/pull/296
27+
"jsx-a11y/label-has-for": [
28+
2,
29+
{
30+
"components": [ "Label" ],
31+
"required": {
32+
"every": [ "id" ]
33+
},
34+
"allowChildren": false
35+
}
36+
],
2637
"object-curly-spacing": 0,
2738
"prefer-const": ["warn", {
2839
"destructuring": "all",

0 commit comments

Comments
 (0)