/
.eslintrc
73 lines (73 loc) · 1.72 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "import"],
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking"
],
"settings": {
"react": {
"version": "detect"
}
},
"rules": {
"@typescript-eslint/no-explicit-any": ["error"],
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
"args": "after-used",
"varsIgnorePattern": "^_+$"
}
],
"semi": ["error", "never"],
"eol-last": ["error", "always"],
"quote-props": ["error", "consistent-as-needed"],
"array-element-newline": ["off"],
"react/prop-types": ["off"],
"react/no-unescaped-entities": ["off"],
"@typescript-eslint/consistent-type-imports": [
"error",
{
"prefer": "type-imports"
}
],
"@typescript-eslint/no-misused-promises": [
"error",
{
"checksVoidReturn": {
"attributes": false
}
}
],
"import/order": [
"error",
{
"alphabetize": {
"order": "asc",
"caseInsensitive": true
},
"newlines-between": "never"
}
],
"import/first": "error",
"import/newline-after-import": "error",
"import/no-duplicates": "error",
"no-restricted-imports": [
"error",
{
"patterns": [".."]
}
],
"react/react-in-jsx-scope": "off"
},
"ignorePatterns": ["*.js"],
"parserOptions": {
"warnOnUnsupportedTypeScriptVersion": false,
"project": ["./tsconfig.json"]
}
}