Skip to content

Commit 30b3d80

Browse files
authored
Merge branch 'master' into greenkeeper/emoji-regex-9.0.0
2 parents a87f83d + 9f8dc16 commit 30b3d80

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

__tests__/src/rules/label-has-associated-control-test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ const htmlForValid = [
3030
{ code: '<label htmlFor="js_id"><span><span><span>A label</span></span></span></label>', options: [{ depth: 4 }] },
3131
{ code: '<label htmlFor="js_id" aria-label="A label" />' },
3232
{ code: '<label htmlFor="js_id" aria-labelledby="A label" />' },
33+
{ code: '<div><label htmlFor="js_id">A label</label><input id="js_id" /></div>' },
3334
// Custom label component.
3435
{ code: '<CustomLabel htmlFor="js_id" aria-label="A label" />', options: [{ labelComponents: ['CustomLabel'] }] },
3536
{ code: '<CustomLabel htmlFor="js_id" label="A label" />', options: [{ labelAttributes: ['label'], labelComponents: ['CustomLabel'] }] },

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@
3535
"@babel/plugin-transform-flow-strip-types": "^7.2.3",
3636
"babel-eslint": "^10.0.1",
3737
"babel-jest": "^24.0.0",
38-
"babel-preset-airbnb": "^4.0.0",
38+
"babel-preset-airbnb": "^5.0.0",
3939
"coveralls": "^3.0.1",
4040
"eslint": "^3 || ^4 || ^5 || ^6",
4141
"eslint-config-airbnb-base": "^14.0.0",
42-
"eslint-plugin-flowtype": "^4.5.2",
42+
"eslint-plugin-flowtype": "^5.0.0",
4343
"eslint-plugin-import": "^2.18.0",
4444
"estraverse": "^4.2.0",
4545
"expect": "^24.3.1",

0 commit comments

Comments
 (0)