-
-
Notifications
You must be signed in to change notification settings - Fork 210
/
.eslintrc
66 lines (66 loc) · 2.08 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
{
"extends": [
"eslint:recommended"
],
"env": {
"node": true,
"es6": true
},
"parserOptions": {
"ecmaVersion": 2022,
"sourceType": "module"
},
"rules": {
"semi": "error",
"no-extra-semi": "error",
"no-var": "error",
"prefer-const": "error",
"object-shorthand": "error",
"prefer-arrow-callback": "error",
"prefer-numeric-literals": "error",
"prefer-template": "error",
"prefer-spread": "error",
"prefer-rest-params": "error",
"yoda": "error",
"callback-return": "error",
"handle-callback-err": "error",
"no-process-exit": "error",
"no-buffer-constructor": "error",
"no-mixed-requires": "error",
"no-new-require": "error",
"quotes": ["error", "single"],
"spaced-comment": ["error", "always"],
"no-empty": ["error", {"allowEmptyCatch": true}],
"no-constant-condition": ["error", {"checkLoops": false}],
"array-callback-return": "error",
"dot-notation": "error",
"eqeqeq": ["error", "smart"],
"no-caller": "error",
"no-else-return": "error",
"no-eval": "error",
"no-extend-native": "error",
"no-extra-bind": "error",
"no-implied-eval": "error",
"no-multi-str": "error",
"no-new-func": "error",
"no-new-wrappers": "error",
"no-octal-escape": "error",
"no-proto": "error",
"no-script-url": "error",
"no-self-compare": "error",
"no-sequences": "error",
"no-unmodified-loop-condition": "error",
"no-useless-call": "error",
"no-useless-return": "error",
"strict": "error",
"no-undef-init": "error",
"no-use-before-define": ["error", "nofunc"],
"no-path-concat": "error",
"no-duplicate-imports": "error",
"no-useless-computed-key": "error",
"no-useless-constructor": "error",
"no-useless-rename": "error",
"prefer-object-spread": "error",
"indent": "off"
}
}