aboutsummaryrefslogtreecommitdiff
path: root/src/react-javascript.ts
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-06-18 10:11:34 +0300
committerValentin Popov <info@valentineus.link>2020-06-18 10:11:34 +0300
commite66c5dd2335131c0a96d66bbb401b541ff29672e (patch)
tree75144696058879ed426ae0e80e106830b5e74fcb /src/react-javascript.ts
parent095a31c8fb4575dd1b02d4c10a188368398e0749 (diff)
downloadeslint-config-e66c5dd2335131c0a96d66bbb401b541ff29672e.tar.xz
eslint-config-e66c5dd2335131c0a96d66bbb401b541ff29672e.zip
Added react and react-hooks plugins
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to 'src/react-javascript.ts')
-rw-r--r--src/react-javascript.ts12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/react-javascript.ts b/src/react-javascript.ts
index 813e859..e3bea86 100644
--- a/src/react-javascript.ts
+++ b/src/react-javascript.ts
@@ -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,
},
};