Skip to content

Commit 004412c

Browse files
authored
Fix plugin typo in configs
ESLint looks for the `plugins` config property. Currently, if you extend `plugin:react/recommended` you still need to add `plugins: ['react']`. This commit fixes that, so you no longer need to add the plugins prop when you extend `recommended` or `all` configs.
1 parent 52b8e67 commit 004412c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ module.exports = {
9494
rules: allRules,
9595
configs: {
9696
recommended: {
97-
plugin: [
97+
plugins: [
9898
'react'
9999
],
100100
parserOptions: {
@@ -120,7 +120,7 @@ module.exports = {
120120
}
121121
},
122122
all: {
123-
plugin: [
123+
plugins: [
124124
'react'
125125
],
126126
parserOptions: {

0 commit comments

Comments
 (0)