forked from bocoup/scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
84 lines (83 loc) · 2.6 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
{
"env": {
"worker": true,
"es6": true
},
"globals": {
"base": "readonly",
"input": "readonly",
"output": "readonly",
"session": "readonly"
},
"extends": ["eslint:recommended"],
"plugins": ["prefer-let"],
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "script",
"ecmaVersion": 6
},
"rules": {
"array-callback-return": "error",
"block-scoped-var": "error",
"brace-style": "error",
"camelcase": "error",
"consistent-return": "error",
"curly": "error",
"default-case": "error",
"eqeqeq": "error",
"func-style": ["error", "declaration"],
"guard-for-in": "error",
"new-cap": "error",
"new-parens": "error",
"no-array-constructor": "error",
"no-caller": "error",
"no-confusing-arrow": "error",
"no-empty": "error",
"no-empty-function": "error",
"no-eq-null": "error",
"no-eval": "error",
"no-extend-native": "error",
"no-extra-bind": "error",
"no-extra-label": "error",
"no-iterator": "error",
"no-label-var": "error",
"no-labels": "error",
"no-lone-blocks": "error",
"no-loop-func": "error",
"no-mixed-operators": ["error", {"groups": [["&&", "||"]]}],
"no-multi-assign": "error",
"no-nested-ternary": "error",
"no-new-func": "error",
"no-new-object": "error",
"no-new-wrappers": "error",
"no-proto": "error",
"no-self-compare": "error",
"no-sequences": "error",
"no-shadow": "error",
"no-template-curly-in-string": "error",
"no-throw-literal": "error",
"no-undef-init": "error",
"no-unmodified-loop-condition": "error",
"no-unneeded-ternary": "error",
"no-unused-expressions": "error",
"no-use-before-define": "error",
"no-useless-call": "error",
"no-useless-computed-key": "error",
"no-useless-concat": "error",
"no-useless-constructor": "error",
"no-useless-rename": "error",
"no-var": "error",
"no-void": "error",
"one-var-declaration-per-line": "error",
"padded-blocks": ["error", "never"],
"prefer-arrow-callback": "error",
"prefer-const": "off",
"prefer-object-spread": "error",
"prefer-rest-params": "error",
"prefer-spread": "error",
"prefer-template": "error",
"require-await": "error",
"yoda": "error",
"prefer-let/prefer-let": "error"
}
}