diff options
author | Valentin Popov <info@valentineus.link> | 2020-06-18 10:21:47 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2020-06-18 10:21:47 +0300 |
commit | 75ab45106f569f58038c5241d1aee6717c720ba1 (patch) | |
tree | 22cb1b28640b083f134ba154b3fda7aa904c90f0 /src | |
parent | e66c5dd2335131c0a96d66bbb401b541ff29672e (diff) | |
download | eslint-config-75ab45106f569f58038c5241d1aee6717c720ba1.tar.xz eslint-config-75ab45106f569f58038c5241d1aee6717c720ba1.zip |
Added react configs
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to 'src')
-rw-r--r-- | src/react-typescript.ts | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/react-typescript.ts b/src/react-typescript.ts new file mode 100644 index 0000000..a63614e --- /dev/null +++ b/src/react-typescript.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": [ + "./typescript", + "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, + }, +}; |