@luxass/eslint-config 2.2.1 → 2.2.3
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/package.json +1 -1
- package/src/basic.js +11 -3
- package/src/typescript.js +0 -2
package/package.json
CHANGED
package/src/basic.js
CHANGED
|
@@ -166,6 +166,12 @@ module.exports = {
|
|
|
166
166
|
"no-unused-expressions": "off",
|
|
167
167
|
"no-unused-vars": "off"
|
|
168
168
|
}
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
files: [".github/workflows/*.yml"],
|
|
172
|
+
rules: {
|
|
173
|
+
"yml/no-empty-mapping-value": "off"
|
|
174
|
+
}
|
|
169
175
|
}
|
|
170
176
|
],
|
|
171
177
|
rules: {
|
|
@@ -181,7 +187,6 @@ module.exports = {
|
|
|
181
187
|
"no-unused-vars": "warn",
|
|
182
188
|
"no-param-reassign": "off",
|
|
183
189
|
"array-bracket-spacing": ["error", "never"],
|
|
184
|
-
"brace-style": ["error", "stroustrup", { allowSingleLine: true }],
|
|
185
190
|
"block-spacing": ["error", "always"],
|
|
186
191
|
"camelcase": "off",
|
|
187
192
|
"comma-spacing": ["error", { before: false, after: true }],
|
|
@@ -189,7 +194,7 @@ module.exports = {
|
|
|
189
194
|
"comma-dangle": ["error", "never"],
|
|
190
195
|
"no-constant-condition": "warn",
|
|
191
196
|
"no-debugger": "error",
|
|
192
|
-
"no-console": ["
|
|
197
|
+
"no-console": ["warn", { allow: ["warn", "error", "info"] }],
|
|
193
198
|
"no-cond-assign": ["error", "always"],
|
|
194
199
|
"func-call-spacing": ["off", "never"],
|
|
195
200
|
"key-spacing": ["error", { beforeColon: false, afterColon: true }],
|
|
@@ -210,6 +215,7 @@ module.exports = {
|
|
|
210
215
|
asyncArrow: "always"
|
|
211
216
|
}
|
|
212
217
|
],
|
|
218
|
+
"no-multiple-empty-lines": ["warn", { max: 1, maxBOF: 0, maxEOF: 0 }],
|
|
213
219
|
"no-var": "error",
|
|
214
220
|
"prefer-const": [
|
|
215
221
|
"error",
|
|
@@ -311,6 +317,8 @@ module.exports = {
|
|
|
311
317
|
}
|
|
312
318
|
],
|
|
313
319
|
"yml/quotes": ["error", { prefer: "single", avoidEscape: false }],
|
|
314
|
-
"yml/no-empty-document": "off"
|
|
320
|
+
"yml/no-empty-document": "off",
|
|
321
|
+
"padded-blocks": "off",
|
|
322
|
+
"no-trailing-spaces": ["error", { skipBlankLines: true }]
|
|
315
323
|
}
|
|
316
324
|
};
|
package/src/typescript.js
CHANGED
|
@@ -66,8 +66,6 @@ module.exports = {
|
|
|
66
66
|
"@typescript-eslint/no-redeclare": "error",
|
|
67
67
|
"no-use-before-define": "off",
|
|
68
68
|
"@typescript-eslint/no-use-before-define": ["error", { functions: false, classes: false, variables: true }],
|
|
69
|
-
"brace-style": "off",
|
|
70
|
-
"@typescript-eslint/brace-style": ["error", "stroustrup", { allowSingleLine: true }],
|
|
71
69
|
"comma-dangle": "off",
|
|
72
70
|
"@typescript-eslint/comma-dangle": ["error", "never"],
|
|
73
71
|
"object-curly-spacing": "off",
|