-
Notifications
You must be signed in to change notification settings - Fork 29
/
.eslintrc.js
62 lines (62 loc) · 2 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
module.exports = {
"parserOptions": {
"ecmaVersion": 8
},
"extends": "eslint:recommended",
"env": {
"node": true,
"es6": true
},
"rules": {
"getter-return": "error",
"no-await-in-loop": "warn",
"array-callback-return": "error",
"class-methods-use-this": ["warn", {exceptMethods: ["onText", "onCommand"]}],
"guard-for-in": "warn",
"no-caller": "error",
"no-else-return": "warn",
"no-eval": "error",
"no-extra-label": "error",
"no-eq-null": "error",
"no-implied-eval": "error",
"no-invalid-this": "error",
"no-iterator": "error",
"no-labels": "warn",
"no-lone-blocks": "error",
"no-loop-func": "warn",
"no-multi-spaces": "error",
"no-octal-escape": "error",
"no-proto": "error",
"no-return-assign": "error",
"no-return-await": "warn",
"no-self-compare": "error",
"no-sequences": "error",
"no-throw-literal": "error",
"no-unused-expressions": "error",
"no-useless-call": "error",
"no-useless-concat": "error",
"no-void": "error",
"no-with": "error",
"require-await": "warn",
"yoda": "error",
"no-undef-init": "error",
"no-use-before-define": "error",
"no-new-require": "error",
"no-path-concat": "error",
"no-sync": "warn",
"array-bracket-spacing": ["error", "never"],
"comma-dangle": ["error", "never"],
"no-multiple-empty-lines": "error",
"indent": ["error", 4, {
"SwitchCase": 1
}],
"arrow-parens": ["warn", "as-needed"],
"no-useless-computed-key": "error",
"no-useless-constructor": "error",
"no-var": "error",
"object-shorthand": "warn",
"prefer-const": "warn",
"prefer-rest-params": "warn",
"no-useless-escape": 0 // Disabled waiting for issue https://github.com/eslint/eslint/issues/9759
}
};