diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/react-javascript.ts | 12 | ||||
-rw-r--r-- | src/rules/react-hooks/default.json | 1 |
2 files changed, 13 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, }, }; diff --git a/src/rules/react-hooks/default.json b/src/rules/react-hooks/default.json new file mode 100644 index 0000000..0967ef4 --- /dev/null +++ b/src/rules/react-hooks/default.json @@ -0,0 +1 @@ +{} |