-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.json
41 lines (41 loc) · 1.18 KB
/
.eslintrc.json
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
{
"env": {
"node": true,
"browser": true
},
"parser": "@typescript-eslint/parser",
"plugins": ["prettier", "react", "react-hooks", "import"],
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
}
},
"rules": {
"import/no-unresolved": "error",
"import/named": "error",
"import/export": "error",
"import/no-named-as-default": "error",
"import/no-named-as-default-member": "error",
"prettier/prettier": "error",
"no-alert": "error",
"no-duplicate-imports": "error",
"no-useless-constructor": "error",
"no-useless-escape": "error",
"no-undef": "error",
"no-undef-init": "error",
"no-multiple-empty-lines": "error",
"react/jsx-no-undef": "error",
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
"react/no-did-mount-set-state": "error",
"react/no-did-update-set-state": "error",
"react/no-unknown-property": "error",
"react/react-in-jsx-scope": "error",
"react/self-closing-comp": "error",
"react/jsx-wrap-multilines": "error",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "off"
}
}