Skip to content

Commit

Permalink
Update: add react plugin config for eslint init (#12446)
Browse files Browse the repository at this point in the history
This add the recommended config for eslint-plugin-react when using `eslint --init`
doc: https://github.com/yannickcr/eslint-plugin-react#configuration
  • Loading branch information
Ibrahim Rouis authored and aladdin-add committed Nov 13, 2019
1 parent 448ff1e commit 0f7edef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/init/config-initializer.js
Expand Up @@ -291,6 +291,7 @@ function processAnswers(answers) {
jsx: true
};
config.plugins = ["react"];
config.extends.push("plugin:react/recommended");
} else if (answers.framework === "vue") {
config.plugins = ["vue"];
config.extends.push("plugin:vue/essential");
Expand Down

0 comments on commit 0f7edef

Please sign in to comment.