@icebreakers/eslint-config 1.6.18 → 1.6.20
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/dist/index.cjs +15 -2
- package/dist/index.js +15 -2
- package/package.json +9 -8
package/dist/index.cjs
CHANGED
|
@@ -397,6 +397,9 @@ var BASE_DEFAULTS = {
|
|
|
397
397
|
}
|
|
398
398
|
};
|
|
399
399
|
var BASE_RULES = {
|
|
400
|
+
// `noPropertyAccessFromIndexSignature` requires bracket access (`obj['key']`)
|
|
401
|
+
// for index-signature properties, which conflicts with ESLint core `dot-notation`.
|
|
402
|
+
"dot-notation": "off",
|
|
400
403
|
// Disable all pnpm rules by default
|
|
401
404
|
// @antfu/eslint-config auto-enables pnpm plugin when pnpm-workspace.yaml exists
|
|
402
405
|
// but we want it opt-in instead of auto-enabled
|
|
@@ -450,20 +453,30 @@ function resolveUserOptions(options) {
|
|
|
450
453
|
options ?? {},
|
|
451
454
|
BASE_DEFAULTS
|
|
452
455
|
);
|
|
453
|
-
|
|
456
|
+
const resolvedVue = mergeOptionWithDefaults(
|
|
454
457
|
resolved.vue,
|
|
455
458
|
getDefaultVueOptions(options),
|
|
456
459
|
{
|
|
457
460
|
postProcess: applyVueVersionSpecificRules
|
|
458
461
|
}
|
|
459
462
|
);
|
|
460
|
-
|
|
463
|
+
if (resolvedVue === void 0) {
|
|
464
|
+
delete resolved.vue;
|
|
465
|
+
} else {
|
|
466
|
+
resolved.vue = resolvedVue;
|
|
467
|
+
}
|
|
468
|
+
const resolvedTypescript = mergeOptionWithDefaults(
|
|
461
469
|
resolved.typescript,
|
|
462
470
|
getDefaultTypescriptOptions(options),
|
|
463
471
|
{
|
|
464
472
|
useDefaultWhenUndefined: true
|
|
465
473
|
}
|
|
466
474
|
);
|
|
475
|
+
if (resolvedTypescript === void 0) {
|
|
476
|
+
delete resolved.typescript;
|
|
477
|
+
} else {
|
|
478
|
+
resolved.typescript = resolvedTypescript;
|
|
479
|
+
}
|
|
467
480
|
return resolved;
|
|
468
481
|
}
|
|
469
482
|
function createBaseRuleSet(isLegacy) {
|
package/dist/index.js
CHANGED
|
@@ -373,6 +373,9 @@ var BASE_DEFAULTS = {
|
|
|
373
373
|
}
|
|
374
374
|
};
|
|
375
375
|
var BASE_RULES = {
|
|
376
|
+
// `noPropertyAccessFromIndexSignature` requires bracket access (`obj['key']`)
|
|
377
|
+
// for index-signature properties, which conflicts with ESLint core `dot-notation`.
|
|
378
|
+
"dot-notation": "off",
|
|
376
379
|
// Disable all pnpm rules by default
|
|
377
380
|
// @antfu/eslint-config auto-enables pnpm plugin when pnpm-workspace.yaml exists
|
|
378
381
|
// but we want it opt-in instead of auto-enabled
|
|
@@ -426,20 +429,30 @@ function resolveUserOptions(options) {
|
|
|
426
429
|
options ?? {},
|
|
427
430
|
BASE_DEFAULTS
|
|
428
431
|
);
|
|
429
|
-
|
|
432
|
+
const resolvedVue = mergeOptionWithDefaults(
|
|
430
433
|
resolved.vue,
|
|
431
434
|
getDefaultVueOptions(options),
|
|
432
435
|
{
|
|
433
436
|
postProcess: applyVueVersionSpecificRules
|
|
434
437
|
}
|
|
435
438
|
);
|
|
436
|
-
|
|
439
|
+
if (resolvedVue === void 0) {
|
|
440
|
+
delete resolved.vue;
|
|
441
|
+
} else {
|
|
442
|
+
resolved.vue = resolvedVue;
|
|
443
|
+
}
|
|
444
|
+
const resolvedTypescript = mergeOptionWithDefaults(
|
|
437
445
|
resolved.typescript,
|
|
438
446
|
getDefaultTypescriptOptions(options),
|
|
439
447
|
{
|
|
440
448
|
useDefaultWhenUndefined: true
|
|
441
449
|
}
|
|
442
450
|
);
|
|
451
|
+
if (resolvedTypescript === void 0) {
|
|
452
|
+
delete resolved.typescript;
|
|
453
|
+
} else {
|
|
454
|
+
resolved.typescript = resolvedTypescript;
|
|
455
|
+
}
|
|
443
456
|
return resolved;
|
|
444
457
|
}
|
|
445
458
|
function createBaseRuleSet(isLegacy) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@icebreakers/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.6.
|
|
4
|
+
"version": "1.6.20",
|
|
5
5
|
"description": "ESLint preset from Icebreaker's dev-configs",
|
|
6
6
|
"author": "ice breaker <1324318532@qq.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -49,17 +49,17 @@
|
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@antfu/eslint-config": "7.
|
|
53
|
-
"@eslint-react/eslint-plugin": "^2.
|
|
52
|
+
"@antfu/eslint-config": "7.5.0",
|
|
53
|
+
"@eslint-react/eslint-plugin": "^2.13.0",
|
|
54
54
|
"@next/eslint-plugin-next": "^16.1.6",
|
|
55
55
|
"@tanstack/eslint-plugin-query": "^5.91.4",
|
|
56
|
-
"eslint-plugin-better-tailwindcss": "^4.
|
|
57
|
-
"eslint-plugin-format": "
|
|
56
|
+
"eslint-plugin-better-tailwindcss": "^4.3.0",
|
|
57
|
+
"eslint-plugin-format": "2.0.0",
|
|
58
58
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
59
59
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
60
|
-
"eslint-plugin-react-refresh": "^0.5.
|
|
60
|
+
"eslint-plugin-react-refresh": "^0.5.2",
|
|
61
61
|
"eslint-plugin-tailwindcss": "3.18.2",
|
|
62
|
-
"eslint-plugin-vuejs-accessibility": "^2.
|
|
62
|
+
"eslint-plugin-vuejs-accessibility": "^2.5.0"
|
|
63
63
|
},
|
|
64
64
|
"optionalDependencies": {
|
|
65
65
|
"@unocss/eslint-plugin": "66.6.0",
|
|
@@ -75,6 +75,7 @@
|
|
|
75
75
|
"test": "vitest run",
|
|
76
76
|
"test:dev": "vitest",
|
|
77
77
|
"release": "pnpm publish",
|
|
78
|
-
"sync": "cnpm sync @icebreakers/eslint-config"
|
|
78
|
+
"sync": "cnpm sync @icebreakers/eslint-config",
|
|
79
|
+
"typecheck": "tsc --noEmit"
|
|
79
80
|
}
|
|
80
81
|
}
|