-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
executable file
·45 lines (45 loc) · 1.17 KB
/
.eslintrc
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
{
"env": {
"browser": true,
"node": true,
"commonjs": true
},
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": { "jsx": true }
},
"plugins": ["@typescript-eslint", "react", "import", "react-hooks", "prettier"],
"parser": "@typescript-eslint/parser",
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
// 'plugin:import/errors',
// 'plugin:import/warnings',
"plugin:import/typescript"
// 'plugin:prettier/recommended',
],
"rules": {
"@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/indent": 0,
"react/prop-types": 0,
"react/display-name": 0,
"import/first": ["error", "absolute-first"],
"import/order": 2,
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"spaced-comment": "error",
"prettier/prettier": "error"
},
// eslint-plugin-react
"settings": { "react": { "version": "detect" } },
"overrides": [
{
"files": ["*.js"],
"rules": {
"@typescript-eslint/no-var-requires": "off"
}
}
]
}