-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
94 lines (94 loc) · 3.05 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
85
86
87
88
89
90
91
92
93
94
{
"env": {
"node": true
},
"extends": "standard",
"rules": {
"block-scoped-var": "error",
"brace-style": "off",
"camelcase": "error",
"comma-dangle": ["error", "always-multiline"],
"complexity": ["off", 5],
"consistent-this": ["error", "self"],
"curly": "error",
"dot-notation": ["error", { "allowKeywords": true }],
"eol-last": "off",
"eqeqeq": "error",
"guard-for-in": "off",
"indent": ["error", 4],
"max-depth": ["off", 4],
"max-len": ["off", 80, 4],
"max-params": ["off", 3],
"max-statements": ["off", 10],
"new-cap": "error",
"new-parens": "error",
"no-alert": "error",
"no-array-constructor": "error",
"no-bitwise": "error",
"no-caller": "error",
"no-catch-shadow": "error",
"no-console": "error",
"no-control-regex": "error",
"no-debugger": "error",
"no-delete-var": "error",
"no-div-regex": "error",
"no-dupe-keys": "error",
"no-else-return": "error",
"no-empty": "error",
"no-empty-character-class": "error",
"no-eq-null": "error",
"no-eval": "error",
"no-ex-assign": "error",
"no-extra-parens": "error",
"no-fallthrough": "error",
"no-floating-decimal": "error",
"no-func-assign": "off",
"no-implied-eval": "error",
"no-iterator": "error",
"no-label-var": "error",
"no-labels": "error",
"no-loop-func": "error",
"no-mixed-requires": "off",
"no-multi-str": "error",
"no-native-reassign": "error",
"no-new": "error",
"no-new-func": "error",
"no-new-object": "error",
"no-new-wrappers": "error",
"no-obj-calls": "error",
"no-octal": "error",
"no-octal-escape": "error",
"no-plusplus": "off",
"no-proto": "error",
"no-redeclare": "error",
"no-regex-spaces": "error",
"no-return-assign": "error",
"no-script-url": "error",
"no-self-compare": "error",
"no-shadow": "error",
"no-sync": "error",
"no-ternary": "off",
"no-undef": "error",
"no-undef-init": "error",
"no-underscore-dangle": "off",
"no-unreachable": "error",
"no-unused-expressions": "error",
"no-unused-vars": ["warn", { "vars": "all", "args": "after-used" }],
"no-use-before-define": "off",
"no-with": "error",
"one-var": ["error", "always"],
"quote-props": "off",
"quotes": ["error", "double"],
"radix": "off",
"semi": ["error", "always"],
"space-before-function-paren": ["error", "never"],
"spaced-comment": "off",
// TODO: is there a bug in the strict checking? Can't seem to configure it.
"strict": "off",
// "strict": ["error", "global"],
"use-isnan": "error",
"valid-typeof": "off",
"wrap-iife": "error",
"wrap-regex": "error"
}
}