@neovici/cfg 1.5.0 → 1.7.1
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 +0 -86
- package/package.json +6 -10
package/eslint/index.js
CHANGED
|
@@ -13,61 +13,20 @@ module.exports = {
|
|
|
13
13
|
},
|
|
14
14
|
rules: {
|
|
15
15
|
'accessor-pairs': 'error',
|
|
16
|
-
'array-bracket-newline': ['error', 'consistent'],
|
|
17
|
-
'array-bracket-spacing': ['error', 'never'],
|
|
18
|
-
'array-element-newline': ['error', 'consistent'],
|
|
19
16
|
'array-callback-return': 'warn',
|
|
20
|
-
'arrow-parens': ['error', 'as-needed'],
|
|
21
|
-
'arrow-spacing': [
|
|
22
|
-
'error',
|
|
23
|
-
{
|
|
24
|
-
before: true,
|
|
25
|
-
after: true
|
|
26
|
-
}
|
|
27
|
-
],
|
|
28
17
|
'block-scoped-var': 'error',
|
|
29
|
-
'block-spacing': 'error',
|
|
30
|
-
'brace-style': 'error',
|
|
31
18
|
camelcase: 'error',
|
|
32
|
-
'comma-dangle': ['error', 'never'],
|
|
33
|
-
'comma-spacing': [
|
|
34
|
-
'error',
|
|
35
|
-
{
|
|
36
|
-
after: true,
|
|
37
|
-
before: false
|
|
38
|
-
}
|
|
39
|
-
],
|
|
40
|
-
'comma-style': ['error', 'last'],
|
|
41
19
|
complexity: ['warn', 20],
|
|
42
|
-
'computed-property-spacing': ['error', 'never'],
|
|
43
20
|
'consistent-this': ['error', 'that'],
|
|
44
21
|
'constructor-super': 'error',
|
|
45
22
|
curly: ['error', 'all'],
|
|
46
|
-
'eol-last': ['error', 'always'],
|
|
47
23
|
eqeqeq: ['error', 'smart'],
|
|
48
|
-
'func-call-spacing': ['error', 'never'],
|
|
49
24
|
'func-name-matching': ['error', 'always'],
|
|
50
25
|
'func-names': ['error', 'never'],
|
|
51
26
|
'func-style': ['error', 'expression'],
|
|
52
27
|
'guard-for-in': 'error',
|
|
53
28
|
'import/no-extraneous-dependencies': 'warn',
|
|
54
29
|
'import/group-exports': 'error',
|
|
55
|
-
indent: ['error', 'tab'],
|
|
56
|
-
'key-spacing': [
|
|
57
|
-
'error',
|
|
58
|
-
{
|
|
59
|
-
afterColon: true,
|
|
60
|
-
beforeColon: false,
|
|
61
|
-
mode: 'strict'
|
|
62
|
-
}
|
|
63
|
-
],
|
|
64
|
-
'keyword-spacing': [
|
|
65
|
-
'error',
|
|
66
|
-
{
|
|
67
|
-
after: true,
|
|
68
|
-
before: true
|
|
69
|
-
}
|
|
70
|
-
],
|
|
71
30
|
'max-depth': ['error', 4],
|
|
72
31
|
'max-len': [
|
|
73
32
|
'warn',
|
|
@@ -102,7 +61,6 @@ module.exports = {
|
|
|
102
61
|
max: 1
|
|
103
62
|
}
|
|
104
63
|
],
|
|
105
|
-
'multiline-ternary': ['error', 'always-multiline'],
|
|
106
64
|
'new-cap': [
|
|
107
65
|
'error',
|
|
108
66
|
{
|
|
@@ -110,13 +68,6 @@ module.exports = {
|
|
|
110
68
|
newIsCap: true
|
|
111
69
|
}
|
|
112
70
|
],
|
|
113
|
-
'new-parens': 'error',
|
|
114
|
-
'newline-per-chained-call': [
|
|
115
|
-
'error',
|
|
116
|
-
{
|
|
117
|
-
ignoreChainWithDepth: 3
|
|
118
|
-
}
|
|
119
|
-
],
|
|
120
71
|
'no-alert': 'error',
|
|
121
72
|
'no-console': 'error',
|
|
122
73
|
'no-debugger': 'error',
|
|
@@ -129,7 +80,6 @@ module.exports = {
|
|
|
129
80
|
'no-empty-function': 'error',
|
|
130
81
|
'no-eval': 'error',
|
|
131
82
|
'no-extra-bind': 'error',
|
|
132
|
-
'no-extra-parens': 'error',
|
|
133
83
|
'no-global-assign': 'error',
|
|
134
84
|
'no-implicit-globals': 'error',
|
|
135
85
|
'no-invalid-this': 'error',
|
|
@@ -137,7 +87,6 @@ module.exports = {
|
|
|
137
87
|
'no-lone-blocks': 'error',
|
|
138
88
|
'no-lonely-if': 'error',
|
|
139
89
|
'no-loop-func': 'error',
|
|
140
|
-
'no-multi-spaces': 'error',
|
|
141
90
|
'no-new': 'error',
|
|
142
91
|
'no-new-func': 'error',
|
|
143
92
|
'no-nested-ternary': 'error',
|
|
@@ -149,7 +98,6 @@ module.exports = {
|
|
|
149
98
|
'no-template-curly-in-string': 'error',
|
|
150
99
|
'no-this-before-super': 'error',
|
|
151
100
|
'no-throw-literal': 'error',
|
|
152
|
-
'no-trailing-spaces': 'error',
|
|
153
101
|
'no-undef-init': 'error',
|
|
154
102
|
'no-unmodified-loop-condition': 'error',
|
|
155
103
|
'no-unneeded-ternary': 'error',
|
|
@@ -162,16 +110,7 @@ module.exports = {
|
|
|
162
110
|
'no-useless-return': 'error',
|
|
163
111
|
'no-var': 'error',
|
|
164
112
|
'no-void': 'error',
|
|
165
|
-
'no-whitespace-before-property': 'error',
|
|
166
113
|
'no-with': 'error',
|
|
167
|
-
'object-curly-spacing': [
|
|
168
|
-
'warn',
|
|
169
|
-
'always',
|
|
170
|
-
{
|
|
171
|
-
arraysInObjects: false,
|
|
172
|
-
objectsInObjects: false
|
|
173
|
-
}
|
|
174
|
-
],
|
|
175
114
|
'object-shorthand': ['error', 'always'],
|
|
176
115
|
'one-var': [
|
|
177
116
|
'error',
|
|
@@ -181,37 +120,12 @@ module.exports = {
|
|
|
181
120
|
var: 'always'
|
|
182
121
|
}
|
|
183
122
|
],
|
|
184
|
-
'one-var-declaration-per-line': ['error', 'always'],
|
|
185
123
|
'prefer-arrow-callback': 'error',
|
|
186
124
|
'prefer-const': 'error',
|
|
187
|
-
'quote-props': ['error', 'as-needed'],
|
|
188
125
|
quotes: ['error', 'single'],
|
|
189
126
|
radix: 'error',
|
|
190
127
|
'require-unicode-regexp': 'error',
|
|
191
|
-
semi: ['error', 'always'],
|
|
192
|
-
'semi-spacing': [
|
|
193
|
-
'error',
|
|
194
|
-
{
|
|
195
|
-
before: false,
|
|
196
|
-
after: true
|
|
197
|
-
}
|
|
198
|
-
],
|
|
199
|
-
'semi-style': ['error', 'last'],
|
|
200
|
-
'space-before-blocks': ['error', 'always'],
|
|
201
|
-
'space-before-function-paren': [
|
|
202
|
-
'error',
|
|
203
|
-
{
|
|
204
|
-
anonymous: 'always',
|
|
205
|
-
asyncArrow: 'always',
|
|
206
|
-
named: 'never'
|
|
207
|
-
}
|
|
208
|
-
],
|
|
209
|
-
'space-in-parens': 'error',
|
|
210
|
-
'space-infix-ops': 'error',
|
|
211
|
-
'space-unary-ops': 'error',
|
|
212
128
|
strict: 'error',
|
|
213
|
-
'switch-colon-spacing': 'error',
|
|
214
|
-
'template-curly-spacing': ['error', 'always'],
|
|
215
129
|
'valid-jsdoc': 'error'
|
|
216
130
|
},
|
|
217
131
|
overrides: [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neovici/cfg",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.1",
|
|
4
4
|
"description": "Configuration for Neovici packages",
|
|
5
5
|
"homepage": "https://github.com/Neovici/cfg#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -20,7 +20,8 @@
|
|
|
20
20
|
],
|
|
21
21
|
"scripts": {
|
|
22
22
|
"test:eslint": "eslint *.js eslint/*.js",
|
|
23
|
-
"test": "npm run test:eslint"
|
|
23
|
+
"test": "npm run test:eslint",
|
|
24
|
+
"prepare": "husky install"
|
|
24
25
|
},
|
|
25
26
|
"release": {
|
|
26
27
|
"plugins": [
|
|
@@ -41,11 +42,6 @@
|
|
|
41
42
|
"@commitlint/config-conventional"
|
|
42
43
|
]
|
|
43
44
|
},
|
|
44
|
-
"husky": {
|
|
45
|
-
"hooks": {
|
|
46
|
-
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
45
|
"dependencies": {
|
|
50
46
|
"@babel/core": "^7.16.0",
|
|
51
47
|
"@babel/eslint-parser": "^7.16.0",
|
|
@@ -57,11 +53,11 @@
|
|
|
57
53
|
"prettier": "^2.5.0"
|
|
58
54
|
},
|
|
59
55
|
"devDependencies": {
|
|
60
|
-
"@commitlint/cli": "^
|
|
61
|
-
"@commitlint/config-conventional": "^
|
|
56
|
+
"@commitlint/cli": "^16.0.0",
|
|
57
|
+
"@commitlint/config-conventional": "^16.0.0",
|
|
62
58
|
"@semantic-release/changelog": "^6.0.0",
|
|
63
59
|
"@semantic-release/git": "^10.0.0",
|
|
64
|
-
"husky": "^
|
|
60
|
+
"husky": "^7.0.0",
|
|
65
61
|
"semantic-release": "^19.0.0"
|
|
66
62
|
}
|
|
67
63
|
}
|