@neovici/cfg 1.17.2 → 1.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/eslint/index.js +2 -19
- package/eslint/typescript.js +1 -0
- package/package.json +1 -1
package/eslint/index.js
CHANGED
|
@@ -16,14 +16,14 @@ module.exports = {
|
|
|
16
16
|
complexity: ['warn', 20],
|
|
17
17
|
'consistent-this': ['error', 'that'],
|
|
18
18
|
'constructor-super': 'error',
|
|
19
|
-
curly: ['error', '
|
|
19
|
+
curly: ['error', 'multi-line'],
|
|
20
20
|
eqeqeq: ['error', 'smart'],
|
|
21
21
|
'func-name-matching': ['error', 'always'],
|
|
22
22
|
'func-names': ['error', 'never'],
|
|
23
23
|
'func-style': ['error', 'expression'],
|
|
24
24
|
'guard-for-in': 'error',
|
|
25
25
|
'import/no-extraneous-dependencies': 'warn',
|
|
26
|
-
'import/
|
|
26
|
+
'import/no-default-export': 'warn',
|
|
27
27
|
'max-depth': ['error', 4],
|
|
28
28
|
'max-len': [
|
|
29
29
|
'warn',
|
|
@@ -40,15 +40,6 @@ module.exports = {
|
|
|
40
40
|
skipComments: true,
|
|
41
41
|
},
|
|
42
42
|
],
|
|
43
|
-
'max-lines-per-function': [
|
|
44
|
-
'warn',
|
|
45
|
-
{
|
|
46
|
-
max: 50,
|
|
47
|
-
IIFEs: false,
|
|
48
|
-
skipBlankLines: true,
|
|
49
|
-
skipComments: true,
|
|
50
|
-
},
|
|
51
|
-
],
|
|
52
43
|
'max-nested-callbacks': ['error', 5],
|
|
53
44
|
'max-params': ['error', 5],
|
|
54
45
|
'max-statements': ['warn', 15],
|
|
@@ -109,14 +100,6 @@ module.exports = {
|
|
|
109
100
|
'no-void': 'error',
|
|
110
101
|
'no-with': 'error',
|
|
111
102
|
'object-shorthand': ['error', 'always'],
|
|
112
|
-
'one-var': [
|
|
113
|
-
'error',
|
|
114
|
-
{
|
|
115
|
-
const: 'consecutive',
|
|
116
|
-
let: 'always',
|
|
117
|
-
var: 'always',
|
|
118
|
-
},
|
|
119
|
-
],
|
|
120
103
|
'prefer-arrow-callback': 'error',
|
|
121
104
|
'prefer-const': 'error',
|
|
122
105
|
quotes: ['error', 'single'],
|
package/eslint/typescript.js
CHANGED