-
Notifications
You must be signed in to change notification settings - Fork 63
/
.eslintrc.json
88 lines (87 loc) · 2.55 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
{
"parser": "@typescript-eslint/parser",
"extends": [
"eslint:recommended"
],
"plugins": [
"html"
],
"env": {
"browser": true
},
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module"
},
"globals": {
"process": false,
"setImmediate": false,
"Set": false,
"Map": false,
"Buffer": false,
"Promise": false,
"Float32Array": false,
"Float64Array": false,
"Int16Array": false,
"Int32Array": false,
"Int8Array": false,
"Uint16Array": false,
"Uint32Array": false,
"Uint8Array": false,
"Uint8ClampedArray": false
},
"rules": {
"curly": "error",
"block-scoped-var": "error",
"eqeqeq": "error",
"eol-last": ["error", "always"],
"no-alert": "error",
"no-caller": "error",
"no-console": "off",
"no-else-return": "error",
"no-empty": "error",
"no-extend-native": "error",
"no-extra-boolean-cast": "off",
"no-floating-decimal": "error",
"no-irregular-whitespace": "error",
"no-lonely-if": "error",
"no-loop-func": "error",
"no-multiple-empty-lines": ["error", { "max": 1, "maxEOF": 1 }],
"no-new": "error",
"no-prototype-builtins": "off",
"no-sequences": "error",
"no-tabs": "error",
"no-trailing-spaces": "error",
"no-undef": "error",
"no-undef-init": "error",
"no-restricted-globals": ["error", "fdescribe", "fit"],
"no-unused-expressions": "error",
"no-useless-escape": "off",
"no-use-before-define": ["error", "nofunc"],
"require-atomic-updates": "off",
"wrap-iife": ["error", "any"],
"strict": "off",
"semi": "error",
"prefer-const": "off"
},
"overrides": [
{
"files": ["*.ts"],
"plugins": [
"@typescript-eslint"
],
"extends": [
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"prefer-const": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/triple-slash-reference": "off"
}
}
]
}