Skip to content

Commit 0f6a8af

Browse files
committed
More easier plugin:jsx-a11y/{recommended,strict} configs
This makes setting `plugins` unnecessary when using `plugin:jsx-a11y/***` configs. Before ------ ```json { "extends": ["plugin:jsx-a11y/recommended"], "plugins": ["jsx-a11y"] } ``` After ----- ```json { "extends": ["plugin:jsx-a11y/recommended"] } ``` For example, `eslint-plugin-react` has a similar behavior: https://github.com/yannickcr/eslint-plugin-react/blob/3008e85553b0ba66f396e2d6690eea420838bfec/index.js#L117
1 parent 93265cb commit 0f6a8af

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ module.exports = {
3939
},
4040
configs: {
4141
recommended: {
42+
plugins: [
43+
'jsx-a11y',
44+
],
4245
parserOptions: {
4346
ecmaFeatures: {
4447
jsx: true,
@@ -160,6 +163,9 @@ module.exports = {
160163
},
161164
},
162165
strict: {
166+
plugins: [
167+
'jsx-a11y',
168+
],
163169
parserOptions: {
164170
ecmaFeatures: {
165171
jsx: true,

0 commit comments

Comments
 (0)