From 004412c8aa0fb6094f44d9f281e0aa27a0b2889c Mon Sep 17 00:00:00 2001 From: Jamis Charles Date: Tue, 29 Nov 2016 22:41:55 -0800 Subject: [PATCH] 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. --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 59a74d5d56..925301f247 100644 --- a/index.js +++ b/index.js @@ -94,7 +94,7 @@ module.exports = { rules: allRules, configs: { recommended: { - plugin: [ + plugins: [ 'react' ], parserOptions: { @@ -120,7 +120,7 @@ module.exports = { } }, all: { - plugin: [ + plugins: [ 'react' ], parserOptions: {