@cabloy/lint 5.0.22 → 5.0.24
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/oxc/lint.js +14 -83
- package/oxc/lintVue.js +12 -57
- package/package.json +1 -1
package/oxc/lint.js
CHANGED
|
@@ -269,7 +269,7 @@ export const _configDefault = {
|
|
|
269
269
|
'unicorn/no-instanceof-builtins': 'error',
|
|
270
270
|
'unicorn/no-new-array': 'error',
|
|
271
271
|
'unicorn/no-new-buffer': 'error',
|
|
272
|
-
'unicorn/number-literal-case': '
|
|
272
|
+
'unicorn/number-literal-case': 'off',
|
|
273
273
|
'unicorn/prefer-dom-node-text-content': 'error',
|
|
274
274
|
'unicorn/prefer-includes': 'error',
|
|
275
275
|
'unicorn/prefer-node-protocol': 'error',
|
|
@@ -287,13 +287,7 @@ export const _configDefault = {
|
|
|
287
287
|
},
|
|
288
288
|
],
|
|
289
289
|
'@stylistic/block-spacing': ['error', 'always'],
|
|
290
|
-
'@stylistic/brace-style':
|
|
291
|
-
'error',
|
|
292
|
-
'1tbs',
|
|
293
|
-
{
|
|
294
|
-
allowSingleLine: true,
|
|
295
|
-
},
|
|
296
|
-
],
|
|
290
|
+
'@stylistic/brace-style': 'off',
|
|
297
291
|
'@stylistic/comma-dangle': ['error', 'always-multiline'],
|
|
298
292
|
'@stylistic/comma-spacing': [
|
|
299
293
|
'error',
|
|
@@ -319,35 +313,7 @@ export const _configDefault = {
|
|
|
319
313
|
before: false,
|
|
320
314
|
},
|
|
321
315
|
],
|
|
322
|
-
'@stylistic/indent':
|
|
323
|
-
'error',
|
|
324
|
-
2,
|
|
325
|
-
{
|
|
326
|
-
SwitchCase: 1,
|
|
327
|
-
VariableDeclarator: 'first',
|
|
328
|
-
outerIIFEBody: 1,
|
|
329
|
-
MemberExpression: 1,
|
|
330
|
-
FunctionDeclaration: {
|
|
331
|
-
body: 1,
|
|
332
|
-
parameters: 1,
|
|
333
|
-
},
|
|
334
|
-
FunctionExpression: {
|
|
335
|
-
body: 1,
|
|
336
|
-
parameters: 1,
|
|
337
|
-
},
|
|
338
|
-
StaticBlock: {
|
|
339
|
-
body: 1,
|
|
340
|
-
},
|
|
341
|
-
CallExpression: {
|
|
342
|
-
arguments: 1,
|
|
343
|
-
},
|
|
344
|
-
ArrayExpression: 1,
|
|
345
|
-
ObjectExpression: 1,
|
|
346
|
-
ImportDeclaration: 1,
|
|
347
|
-
flatTernaryExpressions: true,
|
|
348
|
-
offsetTernaryExpressions: true,
|
|
349
|
-
},
|
|
350
|
-
],
|
|
316
|
+
'@stylistic/indent': 'off',
|
|
351
317
|
'@stylistic/indent-binary-ops': 'off',
|
|
352
318
|
'@stylistic/key-spacing': [
|
|
353
319
|
'error',
|
|
@@ -356,16 +322,7 @@ export const _configDefault = {
|
|
|
356
322
|
beforeColon: false,
|
|
357
323
|
},
|
|
358
324
|
],
|
|
359
|
-
'@stylistic/keyword-spacing':
|
|
360
|
-
'error',
|
|
361
|
-
{
|
|
362
|
-
overrides: {
|
|
363
|
-
this: {
|
|
364
|
-
before: true,
|
|
365
|
-
},
|
|
366
|
-
},
|
|
367
|
-
},
|
|
368
|
-
],
|
|
325
|
+
'@stylistic/keyword-spacing': 'off',
|
|
369
326
|
'@stylistic/lines-between-class-members': [
|
|
370
327
|
'error',
|
|
371
328
|
'always',
|
|
@@ -400,7 +357,7 @@ export const _configDefault = {
|
|
|
400
357
|
},
|
|
401
358
|
},
|
|
402
359
|
],
|
|
403
|
-
'@stylistic/multiline-ternary':
|
|
360
|
+
'@stylistic/multiline-ternary': 'off',
|
|
404
361
|
'@stylistic/new-parens': 'error',
|
|
405
362
|
'@stylistic/no-extra-parens': ['error', 'functions'],
|
|
406
363
|
'@stylistic/no-floating-decimal': 'error',
|
|
@@ -501,7 +458,7 @@ export const _configDefault = {
|
|
|
501
458
|
'@stylistic/template-curly-spacing': 'error',
|
|
502
459
|
'@stylistic/template-tag-spacing': ['error', 'never'],
|
|
503
460
|
'@stylistic/type-annotation-spacing': ['error', {}],
|
|
504
|
-
'@stylistic/type-generic-spacing': '
|
|
461
|
+
'@stylistic/type-generic-spacing': 'off',
|
|
505
462
|
'@stylistic/type-named-tuple-spacing': 'error',
|
|
506
463
|
'@stylistic/wrap-iife': [
|
|
507
464
|
'error',
|
|
@@ -538,12 +495,7 @@ export const _configDefault = {
|
|
|
538
495
|
when: 'multiline',
|
|
539
496
|
},
|
|
540
497
|
],
|
|
541
|
-
'@stylistic/jsx-one-expression-per-line':
|
|
542
|
-
'error',
|
|
543
|
-
{
|
|
544
|
-
allow: 'single-child',
|
|
545
|
-
},
|
|
546
|
-
],
|
|
498
|
+
'@stylistic/jsx-one-expression-per-line': 'off',
|
|
547
499
|
'@stylistic/jsx-quotes': 'error',
|
|
548
500
|
'@stylistic/jsx-tag-spacing': [
|
|
549
501
|
'error',
|
|
@@ -567,10 +519,10 @@ export const _configDefault = {
|
|
|
567
519
|
return: 'parens-new-line',
|
|
568
520
|
},
|
|
569
521
|
],
|
|
570
|
-
'antfu/consistent-list-newline': '
|
|
522
|
+
'antfu/consistent-list-newline': 'off',
|
|
571
523
|
'antfu/consistent-chaining': 'error',
|
|
572
524
|
'antfu/curly': 'error',
|
|
573
|
-
'antfu/if-newline': '
|
|
525
|
+
'antfu/if-newline': 'off',
|
|
574
526
|
'antfu/top-level-function': 'error',
|
|
575
527
|
'regexp/confusing-quantifier': 'warn',
|
|
576
528
|
'regexp/control-character-escape': 'error',
|
|
@@ -734,10 +686,7 @@ export const _configDefault = {
|
|
|
734
686
|
variables: true,
|
|
735
687
|
},
|
|
736
688
|
],
|
|
737
|
-
'@typescript-eslint/consistent-type-definitions': [
|
|
738
|
-
'error',
|
|
739
|
-
'interface',
|
|
740
|
-
],
|
|
689
|
+
'@typescript-eslint/consistent-type-definitions': ['error', 'interface'],
|
|
741
690
|
'@typescript-eslint/consistent-type-imports': [
|
|
742
691
|
'error',
|
|
743
692
|
{
|
|
@@ -954,14 +903,7 @@ export const _configDefault = {
|
|
|
954
903
|
'jsonc/sort-keys': [
|
|
955
904
|
'error',
|
|
956
905
|
{
|
|
957
|
-
order: [
|
|
958
|
-
'extends',
|
|
959
|
-
'compilerOptions',
|
|
960
|
-
'references',
|
|
961
|
-
'files',
|
|
962
|
-
'include',
|
|
963
|
-
'exclude',
|
|
964
|
-
],
|
|
906
|
+
order: ['extends', 'compilerOptions', 'references', 'files', 'include', 'exclude'],
|
|
965
907
|
pathPattern: '^$',
|
|
966
908
|
},
|
|
967
909
|
{
|
|
@@ -1251,12 +1193,7 @@ export const _configDefault = {
|
|
|
1251
1193
|
'no-redeclare': 'off',
|
|
1252
1194
|
'no-use-before-define': 'off',
|
|
1253
1195
|
},
|
|
1254
|
-
jsPlugins: [
|
|
1255
|
-
'eslint-plugin-antfu',
|
|
1256
|
-
'@e18e/eslint-plugin',
|
|
1257
|
-
'@stylistic/eslint-plugin',
|
|
1258
|
-
'eslint-plugin-unused-imports',
|
|
1259
|
-
],
|
|
1196
|
+
jsPlugins: ['eslint-plugin-antfu', '@e18e/eslint-plugin', '@stylistic/eslint-plugin', 'eslint-plugin-unused-imports'],
|
|
1260
1197
|
plugins: ['typescript'],
|
|
1261
1198
|
},
|
|
1262
1199
|
{
|
|
@@ -1291,10 +1228,7 @@ export const _configDefault = {
|
|
|
1291
1228
|
'eslint-comments/no-unlimited-disable': 'off',
|
|
1292
1229
|
'unused-imports/no-unused-vars': 'off',
|
|
1293
1230
|
},
|
|
1294
|
-
jsPlugins: [
|
|
1295
|
-
'eslint-plugin-eslint-comments',
|
|
1296
|
-
'eslint-plugin-unused-imports',
|
|
1297
|
-
],
|
|
1231
|
+
jsPlugins: ['eslint-plugin-eslint-comments', 'eslint-plugin-unused-imports'],
|
|
1298
1232
|
},
|
|
1299
1233
|
{
|
|
1300
1234
|
files: ['**/*.js', '**/*.cjs'],
|
|
@@ -1304,10 +1238,7 @@ export const _configDefault = {
|
|
|
1304
1238
|
plugins: ['typescript'],
|
|
1305
1239
|
},
|
|
1306
1240
|
{
|
|
1307
|
-
files: [
|
|
1308
|
-
'**/*.config.?([cm])[jt]s?(x)',
|
|
1309
|
-
'**/*.config.*.?([cm])[jt]s?(x)',
|
|
1310
|
-
],
|
|
1241
|
+
files: ['**/*.config.?([cm])[jt]s?(x)', '**/*.config.*.?([cm])[jt]s?(x)'],
|
|
1311
1242
|
rules: {
|
|
1312
1243
|
'antfu/no-top-level-await': 'off',
|
|
1313
1244
|
'no-console': 'off',
|
package/oxc/lintVue.js
CHANGED
|
@@ -269,7 +269,7 @@ export const _configDefault = {
|
|
|
269
269
|
'unicorn/no-instanceof-builtins': 'error',
|
|
270
270
|
'unicorn/no-new-array': 'error',
|
|
271
271
|
'unicorn/no-new-buffer': 'error',
|
|
272
|
-
'unicorn/number-literal-case': '
|
|
272
|
+
'unicorn/number-literal-case': 'off',
|
|
273
273
|
'unicorn/prefer-dom-node-text-content': 'error',
|
|
274
274
|
'unicorn/prefer-includes': 'error',
|
|
275
275
|
'unicorn/prefer-node-protocol': 'error',
|
|
@@ -287,13 +287,7 @@ export const _configDefault = {
|
|
|
287
287
|
},
|
|
288
288
|
],
|
|
289
289
|
'@stylistic/block-spacing': ['error', 'always'],
|
|
290
|
-
'@stylistic/brace-style':
|
|
291
|
-
'error',
|
|
292
|
-
'1tbs',
|
|
293
|
-
{
|
|
294
|
-
allowSingleLine: true,
|
|
295
|
-
},
|
|
296
|
-
],
|
|
290
|
+
'@stylistic/brace-style': 'off',
|
|
297
291
|
'@stylistic/comma-dangle': ['error', 'always-multiline'],
|
|
298
292
|
'@stylistic/comma-spacing': [
|
|
299
293
|
'error',
|
|
@@ -319,35 +313,7 @@ export const _configDefault = {
|
|
|
319
313
|
before: false,
|
|
320
314
|
},
|
|
321
315
|
],
|
|
322
|
-
'@stylistic/indent':
|
|
323
|
-
'error',
|
|
324
|
-
2,
|
|
325
|
-
{
|
|
326
|
-
SwitchCase: 1,
|
|
327
|
-
VariableDeclarator: 'first',
|
|
328
|
-
outerIIFEBody: 1,
|
|
329
|
-
MemberExpression: 1,
|
|
330
|
-
FunctionDeclaration: {
|
|
331
|
-
body: 1,
|
|
332
|
-
parameters: 1,
|
|
333
|
-
},
|
|
334
|
-
FunctionExpression: {
|
|
335
|
-
body: 1,
|
|
336
|
-
parameters: 1,
|
|
337
|
-
},
|
|
338
|
-
StaticBlock: {
|
|
339
|
-
body: 1,
|
|
340
|
-
},
|
|
341
|
-
CallExpression: {
|
|
342
|
-
arguments: 1,
|
|
343
|
-
},
|
|
344
|
-
ArrayExpression: 1,
|
|
345
|
-
ObjectExpression: 1,
|
|
346
|
-
ImportDeclaration: 1,
|
|
347
|
-
flatTernaryExpressions: true,
|
|
348
|
-
offsetTernaryExpressions: true,
|
|
349
|
-
},
|
|
350
|
-
],
|
|
316
|
+
'@stylistic/indent': 'off',
|
|
351
317
|
'@stylistic/indent-binary-ops': 'off',
|
|
352
318
|
'@stylistic/key-spacing': [
|
|
353
319
|
'error',
|
|
@@ -356,16 +322,7 @@ export const _configDefault = {
|
|
|
356
322
|
beforeColon: false,
|
|
357
323
|
},
|
|
358
324
|
],
|
|
359
|
-
'@stylistic/keyword-spacing':
|
|
360
|
-
'error',
|
|
361
|
-
{
|
|
362
|
-
overrides: {
|
|
363
|
-
this: {
|
|
364
|
-
before: true,
|
|
365
|
-
},
|
|
366
|
-
},
|
|
367
|
-
},
|
|
368
|
-
],
|
|
325
|
+
'@stylistic/keyword-spacing': 'off',
|
|
369
326
|
'@stylistic/lines-between-class-members': [
|
|
370
327
|
'error',
|
|
371
328
|
'always',
|
|
@@ -400,7 +357,7 @@ export const _configDefault = {
|
|
|
400
357
|
},
|
|
401
358
|
},
|
|
402
359
|
],
|
|
403
|
-
'@stylistic/multiline-ternary':
|
|
360
|
+
'@stylistic/multiline-ternary': 'off',
|
|
404
361
|
'@stylistic/new-parens': 'error',
|
|
405
362
|
'@stylistic/no-extra-parens': ['error', 'functions'],
|
|
406
363
|
'@stylistic/no-floating-decimal': 'error',
|
|
@@ -501,7 +458,7 @@ export const _configDefault = {
|
|
|
501
458
|
'@stylistic/template-curly-spacing': 'error',
|
|
502
459
|
'@stylistic/template-tag-spacing': ['error', 'never'],
|
|
503
460
|
'@stylistic/type-annotation-spacing': ['error', {}],
|
|
504
|
-
'@stylistic/type-generic-spacing': '
|
|
461
|
+
'@stylistic/type-generic-spacing': 'off',
|
|
505
462
|
'@stylistic/type-named-tuple-spacing': 'error',
|
|
506
463
|
'@stylistic/wrap-iife': [
|
|
507
464
|
'error',
|
|
@@ -538,12 +495,7 @@ export const _configDefault = {
|
|
|
538
495
|
when: 'multiline',
|
|
539
496
|
},
|
|
540
497
|
],
|
|
541
|
-
'@stylistic/jsx-one-expression-per-line':
|
|
542
|
-
'error',
|
|
543
|
-
{
|
|
544
|
-
allow: 'single-child',
|
|
545
|
-
},
|
|
546
|
-
],
|
|
498
|
+
'@stylistic/jsx-one-expression-per-line': 'off',
|
|
547
499
|
'@stylistic/jsx-quotes': 'error',
|
|
548
500
|
'@stylistic/jsx-tag-spacing': [
|
|
549
501
|
'error',
|
|
@@ -567,10 +519,10 @@ export const _configDefault = {
|
|
|
567
519
|
return: 'parens-new-line',
|
|
568
520
|
},
|
|
569
521
|
],
|
|
570
|
-
'antfu/consistent-list-newline': '
|
|
522
|
+
'antfu/consistent-list-newline': 'off',
|
|
571
523
|
'antfu/consistent-chaining': 'error',
|
|
572
524
|
'antfu/curly': 'error',
|
|
573
|
-
'antfu/if-newline': '
|
|
525
|
+
'antfu/if-newline': 'off',
|
|
574
526
|
'antfu/top-level-function': 'error',
|
|
575
527
|
'regexp/confusing-quantifier': 'warn',
|
|
576
528
|
'regexp/control-character-escape': 'error',
|
|
@@ -788,6 +740,9 @@ export const _configDefault = {
|
|
|
788
740
|
'vue/no-multiple-slot-args': 'warn',
|
|
789
741
|
'antfu/no-top-level-await': 'off',
|
|
790
742
|
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
743
|
+
'@stylistic/no-multiple-empty-lines': 'off',
|
|
744
|
+
'unused-imports/no-unused-imports': 'off',
|
|
745
|
+
'unused-imports/no-unused-vars': 'off',
|
|
791
746
|
},
|
|
792
747
|
jsPlugins: ['eslint-plugin-antfu'],
|
|
793
748
|
plugins: ['vue', 'typescript'],
|