Skip to content

Commit 72eb3e4

Browse files
ViZheljharb
authored andcommitted
[eslint config] [breaking] [deps] update eslint-plugin-jsx-a11y to v3
1 parent b736499 commit 72eb3e4

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

packages/eslint-config-airbnb/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"eslint": "^3.9.1",
5454
"eslint-find-rules": "^1.14.3",
5555
"eslint-plugin-import": "^2.1.0",
56-
"eslint-plugin-jsx-a11y": "^2.2.3",
56+
"eslint-plugin-jsx-a11y": "^3.0.1",
5757
"eslint-plugin-react": "^6.6.0",
5858
"in-publish": "^2.0.0",
5959
"react": ">= 0.13.0",
@@ -62,7 +62,7 @@
6262
},
6363
"peerDependencies": {
6464
"eslint": "^3.9.1",
65-
"eslint-plugin-jsx-a11y": "^2.2.3",
65+
"eslint-plugin-jsx-a11y": "^3.0.1",
6666
"eslint-plugin-import": "^2.1.0",
6767
"eslint-plugin-react": "^6.6.0"
6868
},

packages/eslint-config-airbnb/rules/react-a11y.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module.exports = {
99
rules: {
1010
// Enforce that anchors have content
1111
// https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/anchor-has-content.md
12-
'jsx-a11y/anchor-has-content': ['error', ['']],
12+
'jsx-a11y/anchor-has-content': ['error', { components: [''] }],
1313

1414
// Require ARIA roles to be valid and non-abstract
1515
// https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/aria-role.md
@@ -30,7 +30,7 @@ module.exports = {
3030

3131
// disallow href "#"
3232
// https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/href-no-hash.md
33-
'jsx-a11y/href-no-hash': ['error', ['a']],
33+
'jsx-a11y/href-no-hash': ['error', { components: ['a'] }],
3434

3535
// Require <img> to have a non-empty `alt` prop, or role="presentation"
3636
// https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/img-has-alt.md
@@ -42,7 +42,7 @@ module.exports = {
4242

4343
// require that JSX labels use "htmlFor"
4444
// https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/label-has-for.md
45-
'jsx-a11y/label-has-for': ['error', ['label']],
45+
'jsx-a11y/label-has-for': ['error', { components: ['label'] }],
4646

4747
// require that mouseover/out come with focus/blur, for keyboard-only users
4848
// TODO: evaluate
@@ -82,7 +82,7 @@ module.exports = {
8282

8383
// ensure <hX> tags have content and are not aria-hidden
8484
// https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/heading-has-content.md
85-
'jsx-a11y/heading-has-content': ['error', ['']],
85+
'jsx-a11y/heading-has-content': ['error', { components: [''] }],
8686

8787
// require HTML elements to have a "lang" prop
8888
// https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/html-has-lang.md

0 commit comments

Comments
 (0)