@luxass/eslint-config 2.2.1 → 2.2.2
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 +5 -3
- package/src/typescript.js +0 -2
package/package.json
CHANGED
package/src/basic.js
CHANGED
|
@@ -181,7 +181,6 @@ module.exports = {
|
|
|
181
181
|
"no-unused-vars": "warn",
|
|
182
182
|
"no-param-reassign": "off",
|
|
183
183
|
"array-bracket-spacing": ["error", "never"],
|
|
184
|
-
"brace-style": ["error", "stroustrup", { allowSingleLine: true }],
|
|
185
184
|
"block-spacing": ["error", "always"],
|
|
186
185
|
"camelcase": "off",
|
|
187
186
|
"comma-spacing": ["error", { before: false, after: true }],
|
|
@@ -189,7 +188,7 @@ module.exports = {
|
|
|
189
188
|
"comma-dangle": ["error", "never"],
|
|
190
189
|
"no-constant-condition": "warn",
|
|
191
190
|
"no-debugger": "error",
|
|
192
|
-
"no-console": ["
|
|
191
|
+
"no-console": ["warn", { allow: ["warn", "error", "info"] }],
|
|
193
192
|
"no-cond-assign": ["error", "always"],
|
|
194
193
|
"func-call-spacing": ["off", "never"],
|
|
195
194
|
"key-spacing": ["error", { beforeColon: false, afterColon: true }],
|
|
@@ -210,6 +209,7 @@ module.exports = {
|
|
|
210
209
|
asyncArrow: "always"
|
|
211
210
|
}
|
|
212
211
|
],
|
|
212
|
+
"no-multiple-empty-lines": ["warn", { max: 1, maxBOF: 0, maxEOF: 0 }],
|
|
213
213
|
"no-var": "error",
|
|
214
214
|
"prefer-const": [
|
|
215
215
|
"error",
|
|
@@ -311,6 +311,8 @@ module.exports = {
|
|
|
311
311
|
}
|
|
312
312
|
],
|
|
313
313
|
"yml/quotes": ["error", { prefer: "single", avoidEscape: false }],
|
|
314
|
-
"yml/no-empty-document": "off"
|
|
314
|
+
"yml/no-empty-document": "off",
|
|
315
|
+
"padded-blocks": "off",
|
|
316
|
+
"no-trailing-spaces": ["error", { skipBlankLines: true }]
|
|
315
317
|
}
|
|
316
318
|
};
|
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",
|