-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.json
96 lines (92 loc) · 2.74 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
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint",
"eslint-plugin-tsdoc",
"react-refresh"
],
"env": {
"browser": true,
"es2020": true
},
"ignorePatterns": [
"dist",
".eslintrc.json"
],
"settings": {
"react": {
"version": "detect"
}
},
"rules": {
"quotes": ["error", "double", { "allowTemplateLiterals": true }],
"semi": "error",
"indent": ["error", 2, {
"FunctionDeclaration": { "parameters": "first" },
"ignoreComments": true
}],
"eol-last": ["error", "always"],
"object-shorthand": ["error", "always"],
"no-unused-vars": 0,
"no-lonely-if": "warn",
"no-trailing-spaces": "warn",
"no-whitespace-before-property": "warn",
"space-before-blocks": "warn",
"space-in-parens": ["warn", "never"],
"space-infix-ops": "warn",
"eqeqeq": "warn",
"react/display-name": 0,
"react/prop-types": 0,
"react/jsx-uses-react": "off",
"react/react-in-jsx-scope": "off",
"tsdoc/syntax": "warn",
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/explicit-module-boundary-types": ["warn", {
"allowArgumentsExplicitlyTypedAsAny": true,
"allowDirectConstAssertionInArrowFunctions": true,
"allowedNames": [],
"allowHigherOrderFunctions": true,
"allowTypedFunctionExpressions": true
}],
"@typescript-eslint/consistent-type-definitions": ["error", "interface"],
"@typescript-eslint/member-delimiter-style": ["error", {
"multiline": {"delimiter": "semi", "requireLast": true},
"singleline": {"delimiter": "semi", "requireLast": false}
}],
"@typescript-eslint/no-unused-vars": ["warn", {
"ignoreRestSiblings": true,
"argsIgnorePattern": "^_"
}],
"@typescript-eslint/no-non-null-assertion": 0,
"@typescript-eslint/space-before-function-paren": ["warn", {
"anonymous": "never",
"named": "never",
"asyncArrow": "always"
}],
"@typescript-eslint/naming-convention": [
"error",
{ "selector": "typeLike", "format": ["StrictPascalCase"] },
{ "selector": "variable", "format": ["strictCamelCase", "UPPER_CASE", "StrictPascalCase"] },
{ "selector": "variable", "modifiers": ["destructured"], "format": null },
{
"selector": "variable",
"filter": {
"regex": "^\\w+(?:Action|Reducer)$",
"match": true
},
"format": ["strictCamelCase", "StrictPascalCase"]
}
],
"react-refresh/only-export-components": [
"warn",
{ "allowConstantExport": true }
]
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended"
]
}