eslint-config/src/react-typescript.ts
Valentin Popov 75ab45106f Added react configs
Signed-off-by: Valentin Popov <info@valentineus.link>
2020-06-18 11:21:47 +04:00

28 lines
508 B
TypeScript

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,
},
};