This repository has been archived by the owner on Apr 23, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
64 lines (64 loc) · 1.61 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
{
"parser": "@typescript-eslint/parser",
"extends": ["prettier", "plugin:@typescript-eslint/recommended", "plugin:react/recommended"],
"rules": {
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/indent": "off",
"@typescript-eslint/member-delimiter-style": [
"warn",
{
"multiline": {
"delimiter": "semi",
"requireLast": true
},
"singleline": {
"delimiter": "semi",
"requireLast": false
}
}
],
"@typescript-eslint/no-unused-expressions": [
"warn",
{
"allowShortCircuit": true
}
],
"indent": ["warn", "tab", { "SwitchCase": 1 }],
"@typescript-eslint/semi": ["warn", "always"],
"@typescript-eslint/type-annotation-spacing": "warn",
"arrow-parens": ["warn", "as-needed"],
"comma-dangle": ["warn", "never"],
"eol-last": "warn",
"eqeqeq": ["warn", "smart"],
"no-multiple-empty-lines": "warn",
"no-redeclare": "error",
"no-var": "error",
"one-var": ["warn", "never"],
"prefer-const": [
"warn",
{
"destructuring": "all"
}
],
"quote-props": ["warn", "as-needed"],
"radix": "error",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"react/no-danger": "warn",
"react/prop-types": "off",
"react/no-this-in-sfc": "error",
"react/no-unused-state": "warn",
"react/react-in-jsx-scope": "off",
"comma-spacing": ["warn", { "before": false, "after": true }],
"key-spacing": ["warn", { "afterColon": true }]
},
"globals": {
"React": "writable"
},
"settings": {
"react": {
"version": "detect"
}
}
}