-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc.json
82 lines (81 loc) · 2.88 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
{
"extends": [
"react-app"
],
"plugins": [
"@typescript-eslint",
"import"
],
"rules": {
"semi": ["error", "never", { "beforeStatementContinuationChars": "always" }],
"indent": ["error", 4],
"quotes": ["error", "double"],
"quote-props": ["error", "consistent"],
"brace-style": "off",
"@typescript-eslint/brace-style": ["error"],
"object-curly-spacing": ["error", "always"],
"array-bracket-spacing": ["error", "never"],
"no-else-return": "off",
"no-trailing-spaces": "error",
"no-multi-spaces": "error",
"no-multiple-empty-lines": ["error", { "max": 1, "maxBOF": 0, "maxEOF": 0 }],
"comma-dangle": "off",
"@typescript-eslint/comma-dangle": ["error", "always-multiline"],
"comma-spacing": "off",
"@typescript-eslint/comma-spacing": ["error"],
"prefer-const": ["warn", { "destructuring": "all" }],
"arrow-parens": ["error", "as-needed"],
"no-confusing-arrow": ["error", { "allowParens": true }],
"@typescript-eslint/no-unused-vars": ["warn", { "argsIgnorePattern": "^_" }],
"no-extra-semi": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-extra-semi": ["error"],
"no-empty-function": "off",
"@typescript-eslint/no-empty-function": "off",
"no-unused-expressions": "off",
"@typescript-eslint/no-unused-expressions": ["warn"],
"@typescript-eslint/ban-ts-comment": "off",
"keyword-spacing": "off",
"@typescript-eslint/keyword-spacing": ["error"],
"@typescript-eslint/member-delimiter-style": ["error", {
"multiline": {
"delimiter": "none",
"requireLast": true
},
"singleline": {
"delimiter": "comma",
"requireLast": false
},
"multilineDetection": "brackets"
}],
"import/newline-after-import": "error",
"import/no-duplicates": "error",
"import/order": [
"error",
{
"groups": ["builtin", "external", "internal", "sibling", "index", "object"],
"newlines-between": "always",
"pathGroups": [
{
"pattern": "react|react-dom",
"group": "builtin",
"position": "before"
}
],
"pathGroupsExcludedImportTypes": ["react"],
"alphabetize": { "order": "asc", "caseInsensitive": true }
}
]
},
"overrides": [
{
"files": ["service-worker.js"],
"rules": {
"no-restricted-globals": "off"
},
"env": {
"serviceworker": true
}
}
]
}