-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
76 lines (76 loc) · 1.83 KB
/
.eslintrc.js
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
module.exports = {
env: {
browser: true,
commonjs: true,
es2021: true
},
extends: [
'standard'
],
parserOptions: {
ecmaVersion: 12
},
rules: {
"quote-props": "off",
"no-undef": "error",
"no-unused-vars": "error",
"no-inner-declarations": ["error"],
"camelcase": "warn",
"curly": "warn",
"no-undef-init": "warn",
"no-constant-condition": "warn",
"no-console": ["warn", {
"allow": ["time", "timeEnd", "info", "error", "warn"]
}],
"linebreak-style": [
"warn",
"unix"
],
"one-var": "warn",
"new-cap": "warn",
"quotes": [
"off",
"double"
],
"semi": [
"warn",
"always"
],
"prefer-promise-reject-errors": ["warn", { "allowEmptyReject": true }],
"promise/param-names": ["warn"],
"no-unmodified-loop-condition": ["warn"],
"no-useless-escape": ["warn"],
"eol-last": ["warn"],
"space-before-function-paren": ["off", {
"anonymous": "ignore",
"named": "always",
"asyncArrow": "ignore"
}],
"comma-dangle": ["error", {
"arrays": "only-multiline",
"objects": "only-multiline",
"imports": "never",
"exports": "never",
"functions": "ignore"
}],
"indent": "off",
"no-multi-spaces": "off",
"no-trailing-spaces": "error",
"handle-callback-err": "error",
"spaced-comment": "off",
"object-property-newline": "off",
"object-curly-spacing": "off",
"no-template-curly-in-string": "off",
"no-unneeded-ternary": "off",
"no-return-assign": "off",
"eqeqeq": "off",
"operator-linebreak": "error",
"space-infix-ops": "off",
"no-mixed-operators": "off",
"space-unary-ops": "off",
"keyword-spacing": "error",
"no-unreachable": "off",
"standard/array-bracket-even-spacing": "off",
"yoda": "error"
}
};