Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 197b50c

Browse files
committed
[eslint config] [deps] update eslint-config-airbnb-base, eslint-plugin-jsx-a11y
1 parent f550ded commit 197b50c

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

packages/eslint-config-airbnb/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
},
5555
"homepage": "https://github.com/airbnb/javascript",
5656
"dependencies": {
57-
"eslint-config-airbnb-base": "^14.1.0",
57+
"eslint-config-airbnb-base": "^14.2.0",
5858
"object.assign": "^4.1.0",
5959
"object.entries": "^1.1.2"
6060
},
@@ -66,7 +66,7 @@
6666
"eslint": "^5.16.0 || ^6.8.0 || ^7.2.0",
6767
"eslint-find-rules": "^3.5.0",
6868
"eslint-plugin-import": "^2.21.2",
69-
"eslint-plugin-jsx-a11y": "^6.2.3",
69+
"eslint-plugin-jsx-a11y": "^6.3.0",
7070
"eslint-plugin-react": "^7.20.0",
7171
"eslint-plugin-react-hooks": "^4 || ^3 || ^2.3.0 || ^1.7.0",
7272
"in-publish": "^2.0.1",
@@ -77,7 +77,7 @@
7777
"peerDependencies": {
7878
"eslint": "^5.16.0 || ^6.8.0 || ^7.2.0",
7979
"eslint-plugin-import": "^2.21.2",
80-
"eslint-plugin-jsx-a11y": "^6.2.3",
80+
"eslint-plugin-jsx-a11y": "^6.3.0",
8181
"eslint-plugin-react": "^7.20.0",
8282
"eslint-plugin-react-hooks": "^4 || ^3 || ^2.3.0 || ^1.7.0"
8383
},

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,5 +236,11 @@ module.exports = {
236236
specialLink: ['to'],
237237
aspects: ['noHref', 'invalidHref', 'preferButton'],
238238
}],
239+
240+
// Ensure the autocomplete attribute is correct and suitable for the form field it is used with
241+
// https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/29c68596b15c4ff0a40daae6d4a2670e36e37d35/docs/rules/autocomplete-valid.md
242+
'jsx-a11y/autocomplete-valid': ['off', {
243+
inputComponents: [],
244+
}],
239245
},
240246
};

0 commit comments

Comments
 (0)