diff options
author | Valentin Popov <info@valentineus.link> | 2020-10-02 16:19:18 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-02 16:19:18 +0300 |
commit | ca3472cf54466250deafbb210d81054674b5a27d (patch) | |
tree | 975dc87692d80347b3604e3d649a65dbd51e50f6 /src/react-javascript.ts | |
parent | a7aeded00994c56e4a6f24f53944b159be3a253d (diff) | |
parent | 8a1a4a502c1045e3f74bfe74addad130edb99f48 (diff) | |
download | eslint-config-ca3472cf54466250deafbb210d81054674b5a27d.tar.xz eslint-config-ca3472cf54466250deafbb210d81054674b5a27d.zip |
Merge pull request #7 from valentineus/release/2020-06-18
Release/2020 06 18
Diffstat (limited to 'src/react-javascript.ts')
-rw-r--r-- | src/react-javascript.ts | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/react-javascript.ts b/src/react-javascript.ts new file mode 100644 index 0000000..e3bea86 --- /dev/null +++ b/src/react-javascript.ts @@ -0,0 +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, + }, +}; |