@paratco/eslint-config 0.6.2 → 0.6.4
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/lints/stylistic/index.js +18 -3
package/package.json
CHANGED
|
@@ -258,7 +258,17 @@ export default {
|
|
|
258
258
|
|
|
259
259
|
// https://eslint.style/rules/default/max-len
|
|
260
260
|
// Enforce a maximum line length
|
|
261
|
-
"@stylistic/max-len": [
|
|
261
|
+
"@stylistic/max-len": [
|
|
262
|
+
"error",
|
|
263
|
+
{
|
|
264
|
+
code: 120,
|
|
265
|
+
tabWidth: 2,
|
|
266
|
+
ignoreUrls: true,
|
|
267
|
+
ignoreStrings: true,
|
|
268
|
+
ignoreTemplateLiterals: true,
|
|
269
|
+
ignoreRegExpLiterals: true
|
|
270
|
+
}
|
|
271
|
+
],
|
|
262
272
|
|
|
263
273
|
// https://eslint.style/rules/default/max-statements-per-line
|
|
264
274
|
// Enforce a maximum number of statements allowed per line
|
|
@@ -337,7 +347,7 @@ export default {
|
|
|
337
347
|
"@stylistic/object-curly-newline": [
|
|
338
348
|
"warn",
|
|
339
349
|
{
|
|
340
|
-
|
|
350
|
+
consistent: true
|
|
341
351
|
}
|
|
342
352
|
],
|
|
343
353
|
|
|
@@ -347,7 +357,12 @@ export default {
|
|
|
347
357
|
|
|
348
358
|
// https://eslint.style/rules/default/object-property-newline
|
|
349
359
|
// Enforce placing object properties on separate lines
|
|
350
|
-
"@stylistic/object-property-newline": [
|
|
360
|
+
"@stylistic/object-property-newline": [
|
|
361
|
+
"warn",
|
|
362
|
+
{
|
|
363
|
+
allowAllPropertiesOnSameLine: true
|
|
364
|
+
}
|
|
365
|
+
],
|
|
351
366
|
|
|
352
367
|
// https://eslint.style/rules/default/one-var-declaration-per-line
|
|
353
368
|
// Require or disallow newlines around variable declarations
|