@cabloy/lint 5.0.22 → 5.0.23
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 +13 -77
- package/oxc/lintVue.js +8 -51
- 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',
|
|
@@ -567,10 +524,10 @@ export const _configDefault = {
|
|
|
567
524
|
return: 'parens-new-line',
|
|
568
525
|
},
|
|
569
526
|
],
|
|
570
|
-
'antfu/consistent-list-newline': '
|
|
527
|
+
'antfu/consistent-list-newline': 'off',
|
|
571
528
|
'antfu/consistent-chaining': 'error',
|
|
572
529
|
'antfu/curly': 'error',
|
|
573
|
-
'antfu/if-newline': '
|
|
530
|
+
'antfu/if-newline': 'off',
|
|
574
531
|
'antfu/top-level-function': 'error',
|
|
575
532
|
'regexp/confusing-quantifier': 'warn',
|
|
576
533
|
'regexp/control-character-escape': 'error',
|
|
@@ -734,10 +691,7 @@ export const _configDefault = {
|
|
|
734
691
|
variables: true,
|
|
735
692
|
},
|
|
736
693
|
],
|
|
737
|
-
'@typescript-eslint/consistent-type-definitions': [
|
|
738
|
-
'error',
|
|
739
|
-
'interface',
|
|
740
|
-
],
|
|
694
|
+
'@typescript-eslint/consistent-type-definitions': ['error', 'interface'],
|
|
741
695
|
'@typescript-eslint/consistent-type-imports': [
|
|
742
696
|
'error',
|
|
743
697
|
{
|
|
@@ -954,14 +908,7 @@ export const _configDefault = {
|
|
|
954
908
|
'jsonc/sort-keys': [
|
|
955
909
|
'error',
|
|
956
910
|
{
|
|
957
|
-
order: [
|
|
958
|
-
'extends',
|
|
959
|
-
'compilerOptions',
|
|
960
|
-
'references',
|
|
961
|
-
'files',
|
|
962
|
-
'include',
|
|
963
|
-
'exclude',
|
|
964
|
-
],
|
|
911
|
+
order: ['extends', 'compilerOptions', 'references', 'files', 'include', 'exclude'],
|
|
965
912
|
pathPattern: '^$',
|
|
966
913
|
},
|
|
967
914
|
{
|
|
@@ -1251,12 +1198,7 @@ export const _configDefault = {
|
|
|
1251
1198
|
'no-redeclare': 'off',
|
|
1252
1199
|
'no-use-before-define': 'off',
|
|
1253
1200
|
},
|
|
1254
|
-
jsPlugins: [
|
|
1255
|
-
'eslint-plugin-antfu',
|
|
1256
|
-
'@e18e/eslint-plugin',
|
|
1257
|
-
'@stylistic/eslint-plugin',
|
|
1258
|
-
'eslint-plugin-unused-imports',
|
|
1259
|
-
],
|
|
1201
|
+
jsPlugins: ['eslint-plugin-antfu', '@e18e/eslint-plugin', '@stylistic/eslint-plugin', 'eslint-plugin-unused-imports'],
|
|
1260
1202
|
plugins: ['typescript'],
|
|
1261
1203
|
},
|
|
1262
1204
|
{
|
|
@@ -1291,10 +1233,7 @@ export const _configDefault = {
|
|
|
1291
1233
|
'eslint-comments/no-unlimited-disable': 'off',
|
|
1292
1234
|
'unused-imports/no-unused-vars': 'off',
|
|
1293
1235
|
},
|
|
1294
|
-
jsPlugins: [
|
|
1295
|
-
'eslint-plugin-eslint-comments',
|
|
1296
|
-
'eslint-plugin-unused-imports',
|
|
1297
|
-
],
|
|
1236
|
+
jsPlugins: ['eslint-plugin-eslint-comments', 'eslint-plugin-unused-imports'],
|
|
1298
1237
|
},
|
|
1299
1238
|
{
|
|
1300
1239
|
files: ['**/*.js', '**/*.cjs'],
|
|
@@ -1304,10 +1243,7 @@ export const _configDefault = {
|
|
|
1304
1243
|
plugins: ['typescript'],
|
|
1305
1244
|
},
|
|
1306
1245
|
{
|
|
1307
|
-
files: [
|
|
1308
|
-
'**/*.config.?([cm])[jt]s?(x)',
|
|
1309
|
-
'**/*.config.*.?([cm])[jt]s?(x)',
|
|
1310
|
-
],
|
|
1246
|
+
files: ['**/*.config.?([cm])[jt]s?(x)', '**/*.config.*.?([cm])[jt]s?(x)'],
|
|
1311
1247
|
rules: {
|
|
1312
1248
|
'antfu/no-top-level-await': 'off',
|
|
1313
1249
|
'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',
|
|
@@ -567,10 +524,10 @@ export const _configDefault = {
|
|
|
567
524
|
return: 'parens-new-line',
|
|
568
525
|
},
|
|
569
526
|
],
|
|
570
|
-
'antfu/consistent-list-newline': '
|
|
527
|
+
'antfu/consistent-list-newline': 'off',
|
|
571
528
|
'antfu/consistent-chaining': 'error',
|
|
572
529
|
'antfu/curly': 'error',
|
|
573
|
-
'antfu/if-newline': '
|
|
530
|
+
'antfu/if-newline': 'off',
|
|
574
531
|
'antfu/top-level-function': 'error',
|
|
575
532
|
'regexp/confusing-quantifier': 'warn',
|
|
576
533
|
'regexp/control-character-escape': 'error',
|