-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc
More file actions
64 lines (64 loc) · 1.55 KB
/
.eslintrc
File metadata and controls
64 lines (64 loc) · 1.55 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
{
"root": true,
"env": {
"browser": true,
"es2021": true
},
"extends": [
"prettier",
"plugin:react-hooks/recommended",
"eslint:recommended",
"plugin:react/recommended"
],
"settings": {
"import/resolver": {
"node": {
"moduleDirectory": ["node_modules", "src/"],
"extensions": [".js", ".ts", "tsx", ".jsx"]
}
}
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"impliedStrict": true
},
"ecmaVersion": 12
},
"plugins": [
"prettier",
"react-hooks",
"simple-import-sort",
// "@typescript-eslint"
],
"rules": {
// "import/extensions": [
// "error",
// "ignorePackages",
// { "ts": "never", "tsx": "never" }
// ],
// suppress errors for missing 'import React' in files
"react/react-in-jsx-scope": "off",
"no-param-reassign": 0,
"react/prop-types": 1,
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
"react/require-default-props": 0,
"react/no-array-index-key": 0,
"react/forbid-prop-types": 0,
"react/display-name": "off",
// "import/order": 0,
// "no-console": 1,
"prefer-destructuring": 0,
"no-shadow": 0,
"no-unused-vars": [
"warn",
{ "vars": "all", "args": "after-used", "ignoreRestSiblings": false }
]
}
}