From f72e04dbd5b58bbc271824362e7f7102406d9c9d Mon Sep 17 00:00:00 2001 From: Maxime Thirouin Date: Mon, 24 Oct 2016 21:41:25 +0200 Subject: [PATCH] Fix incomplete recommended configs This change allow you to extends "plugin:react/{something}" without having to do something more. If you just extends one config, you get errors about missing rules definition. --- index.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/index.js b/index.js index 6bc2671339..c9f7fc1a8b 100644 --- a/index.js +++ b/index.js @@ -86,6 +86,9 @@ module.exports = { rules: exportedRules, configs: { recommended: { + plugin: [ + 'react' + ], parserOptions: { ecmaFeatures: { jsx: true @@ -109,6 +112,9 @@ module.exports = { } }, all: { + plugin: [ + 'react' + ], parserOptions: { ecmaFeatures: { jsx: true