-
Notifications
You must be signed in to change notification settings - Fork 17
/
.eslintrc.js
69 lines (69 loc) · 2.43 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
module.exports = {
"env": {
"browser": false,
"es6": true
},
"extends": "standard",
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module"
},
"rules": {
"indent": [ "error", 4 ],
"linebreak-style": [ "error", "unix" ],
"quotes": [ "error", "double" ],
"semi": [ "error", "always" ],
"camelcase": "off",
// "no-unused-vars": "off",
"eqeqeq": "off",
"comma-dangle": [ "error", "never" ],
"comma-style": [ "error", "last" ],
"comma-spacing": "off",
"space-before-function-paren": [ "error", "never" ],
"space-in-parens": [ "error", "always" ],
"keyword-spacing": [ "error", {
"overrides": {
"if": { "before": false, "after": false },
"else": { "before": true, "after": true },
"for": { "before": false, "after": false },
"while": { "before": false, "after": false }
}
} ],
"space-before-blocks": [ "error", "always" ],
"array-bracket-spacing": [ "error", "always" ],
"object-curly-spacing": [ "error", "always" ],
"space-unary-ops": "off",
"spaced-comment": "off",
"curly": [ "error", "multi-or-nest" ],
"nonblock-statement-body-position": [ "error", "below" ],
"one-var": "off",
"no-unneeded-ternary": "off",
"no-cond-assign": [ "error", "always" ],
"no-console": "off",
"new-cap": "off",
"no-tabs": "off",
"no-mixed-spaces-and-tabs": "off",
"no-prototype-builtins": "off",
"quote-props": "off",
"no-undef": "off",
"no-useless-return": "off",
"no-new": "off",
"no-useless-constructor": "off",
"no-lone-blocks": "off",
"no-fallthrough": "off",
"no-useless-catch": "off",
"padded-blocks": "off",
"no-use-before-define": "off", // [ "error", { "variables": false, "functions": false } ],
"lines-between-class-members": [ "error", "never" ],
"no-var": "error",
"no-unused-vars": "error",
"object-shorthand": 0,
"multiline-ternary": "off",
"max-len": [ "error", { "code": 100, "tabWidth": 4 } ],
"max-lines-per-function": [ "error", { "max": 200, "skipBlankLines": false } ]
}
};