-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.cjs
45 lines (45 loc) · 1.13 KB
/
.eslintrc.cjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
module.exports = {
extends: [
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
],
env: {
es6: true,
browser: true,
},
parser: "@typescript-eslint/parser",
parserOptions: {
sourceType: "module",
ecmaFeatures: {
jsx: true,
},
},
settings: {
react: {
version: "detect",
},
},
plugins: ["@typescript-eslint", "react", "react-hooks"],
globals: {
process: false,
},
rules: {
"@typescript-eslint/ban-ts-comment": "warn",
"@typescript-eslint/member-delimiter-style": "off",
"jsx-a11y/no-static-element-interactions": "off",
"no-param-reassign": "off",
"no-plusplus": ["error", { allowForLoopAfterthoughts: true }],
"no-underscore-dangle": "off",
"react/destructuring-assignment": "off",
"react/prop-types": "off",
"react/require-default-props": "off",
"react/jsx-filename-extension": [
"error",
{ extensions: [".js", ".jsx", ".ts", ".tsx"] },
],
"react/jsx-props-no-spreading": "off",
"react-hooks/exhaustive-deps": "error",
"react-hooks/rules-of-hooks": "error",
},
};