Added react and react-hooks plugins

Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
2020-06-18 11:11:34 +04:00
parent 095a31c8fb
commit e66c5dd233
6 changed files with 271 additions and 0 deletions

View File

@ -1,15 +1,27 @@
import rJsxA11y from "./rules/jsx-a11y/default.json";
import rReactHooks from "./rules/react-hooks/default.json";
import rDefault from "./rules/react/default.json";
module.exports = {
"extends": [
"./javascript",
"plugin:jsx-a11y/recommended",
"plugin:react-hooks/recommended",
"plugin:react/recommended",
],
"parserOptions": {
ecmaFeatures: {
jsx: true,
},
},
"plugins": [
"jsx-a11y",
"react",
"react-hooks",
],
"rules": {
...rDefault,
...rJsxA11y,
...rReactHooks,
},
};

View File

@ -0,0 +1 @@
{}