Added react configs
Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
27
src/react-typescript.ts
Normal file
27
src/react-typescript.ts
Normal file
@ -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,
|
||||
},
|
||||
};
|
Reference in New Issue
Block a user