-
Notifications
You must be signed in to change notification settings - Fork 387
/
.eslintrc
92 lines (89 loc) · 2.45 KB
/
.eslintrc
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
{
"root": true,
"extends": "@ljharb",
"ignorePatterns": [
"Gruntfile.js",
"*.min.js",
],
"rules": {
"array-bracket-newline": [0],
"array-element-newline": [0],
"callback-return": [0],
"complexity": [1],
"consistent-return": [1],
"eqeqeq": [2, "allow-null"],
"func-name-matching": [0],
"global-require": [0],
"id-length": [2, { "min": 1, "max": 40 }],
"indent": [2, 2],
"max-depth": [2, 5],
"max-len": 0,
"max-lines": [1],
"max-lines-per-function": [0],
"max-params": [2, 4],
"max-statements": [1, 25],
"max-statements-per-line": [2, { "max": 2 }],
"multiline-comment-style": [0],
"new-cap": [2, { "capIsNewExceptions": ["Call", "Construct", "CreateHTML", "GetIterator", "GetMethod", "IsCallable", "IsConstructor", "IsPromise", "IsRegExp", "IteratorClose", "IteratorComplete", "IteratorNext", "IteratorStep", "Map", "OrigNumber", "RequireObjectCoercible", "SameValue", "SameValueZero", "Set", "SpeciesConstructor", "ToInteger", "ToLength", "ToNumber", "ToObject", "ToString", "ToUint32", "TypeIsObject"] }],
"no-constant-condition": [1],
"no-extend-native": [2, { "exceptions": ["Set"] }],
"no-extra-parens": 0,
"no-implicit-coercion": [2, {
"boolean": false,
"number": false,
"string": true
}],
"no-invalid-this": [0],
"no-loss-of-precision": [1],
"no-native-reassign": [2, { "exceptions": ["Number", "Promise", "RegExp"] }],
"no-negated-condition": [1],
"no-param-reassign": [1],
"no-plusplus": [1],
"no-restricted-syntax": [2, "DebuggerStatement", "LabeledStatement", "WithStatement"],
"no-shadow": [1],
"no-underscore-dangle": [0],
"no-unused-vars": [1, { "vars": "all", "args": "after-used" }],
"no-use-before-define": [1],
"no-useless-call": [0],
"object-curly-newline": [1],
"sort-keys": [0],
"spaced-comment": [0],
"strict": [0]
},
"overrides": [
{
"files": "test/**",
"env": {
"browser": true,
"mocha": true,
},
"globals": {
"assert": false,
"expect": false,
"chai": false,
},
"rules": {
"array-callback-return": 0,
"func-name-matching": 0,
"max-lines-per-function": 0,
"max-statements-per-line": [2, { "max": 2 }],
"no-restricted-properties": 1,
"symbol-description": 0,
"prefer-promise-reject-errors": 0,
"consistent-return": 0,
},
},
{
"files": "test-sham/**",
"env": {
"mocha": true,
},
"globals": {
"expect": false,
},
"rules": {
"max-nested-callbacks": [2, 5],
},
}
]
}