-
Notifications
You must be signed in to change notification settings - Fork 51
/
Copy path.eslintrc.json
48 lines (48 loc) · 1.49 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
42
43
44
45
46
47
48
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"jsx": true,
"useJSXTextNode": true,
"project": "./tsconfig.json"
},
"extends": [
"plugin:react/recommended",
"plugin:prettier/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react-hooks/recommended"
],
"settings": {
"react": {
"version": "detect"
}
},
"plugins": ["@typescript-eslint", "react-hooks", "prettier"],
"rules": {
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/interface-name-prefix": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-unused-vars": "error",
"quotes": ["error", "single"],
"jsx-quotes": ["error", "prefer-double"],
"no-trailing-spaces": "error",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"react/no-children-prop": "off",
"curly": "error",
"no-extra-boolean-cast": "error",
"@typescript-eslint/no-unnecessary-condition": "warn",
"@typescript-eslint/prefer-string-starts-ends-with": "error",
"no-empty-function": "off",
"@typescript-eslint/no-empty-function": "off"
},
"overrides": [
{
"files": ["src/backend/*.ts", "src/frontend/entities/*.ts", "src/frontend/stores/*.ts"],
"rules": {
"@typescript-eslint/explicit-module-boundary-types": "error"
}
}
]
}