@himynameisdave/oxlint-config 1.0.0 → 1.1.0
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/base.d.ts +1 -1
- package/dist/base.js +7 -4
- package/dist/index.d.ts +4 -2
- package/dist/vitest.d.ts +3 -1
- package/dist/vitest.js +4 -1
- package/package.json +1 -1
package/dist/base.d.ts
CHANGED
|
@@ -452,7 +452,7 @@ declare const _default: {
|
|
|
452
452
|
'import/max-dependencies': ["error", {
|
|
453
453
|
max: number;
|
|
454
454
|
}];
|
|
455
|
-
'import/consistent-type-specifier-style': ["error", "prefer-
|
|
455
|
+
'import/consistent-type-specifier-style': ["error", "prefer-top-level-if-only-type-imports"];
|
|
456
456
|
'import/exports-last': "off";
|
|
457
457
|
'import/first': "error";
|
|
458
458
|
'import/group-exports': "off";
|
package/dist/base.js
CHANGED
|
@@ -494,8 +494,9 @@ export default defineConfig({
|
|
|
494
494
|
'typescript/consistent-type-assertions': 'error',
|
|
495
495
|
// type over interface: no declaration merging surprises, works for unions too.
|
|
496
496
|
'typescript/consistent-type-definitions': ['error', 'type'],
|
|
497
|
-
// Inline `import { type
|
|
498
|
-
// import/consistent-type-specifier-style below
|
|
497
|
+
// Inline `import { x, type Y }` keeps mixed value+type imports on one line; the
|
|
498
|
+
// all-type case is handled by import/consistent-type-specifier-style below, which
|
|
499
|
+
// sends it top-level so erasure drops it (issue #33).
|
|
499
500
|
'typescript/consistent-type-imports': ['error', { fixStyle: 'inline-type-imports' }],
|
|
500
501
|
// Property signatures (fn: () => void) get strict variance checking; methods don't.
|
|
501
502
|
'typescript/method-signature-style': 'error',
|
|
@@ -948,8 +949,10 @@ export default defineConfig({
|
|
|
948
949
|
/* ================================================================== *
|
|
949
950
|
* import — style
|
|
950
951
|
* ================================================================== */
|
|
951
|
-
// import {
|
|
952
|
-
|
|
952
|
+
// Top-level `import type { X }` only when every specifier is a type — that shape
|
|
953
|
+
// fully erases, so this agrees with typescript/no-import-type-side-effects and
|
|
954
|
+
// --fix converges; mixed imports keep inline `type` on one line (see issue #33).
|
|
955
|
+
'import/consistent-type-specifier-style': ['error', 'prefer-top-level-if-only-type-imports'],
|
|
953
956
|
// Export placement is layout preference, not correctness (off per cacographer).
|
|
954
957
|
'import/exports-last': 'off',
|
|
955
958
|
// Imports scattered below code hide the dependency list.
|
package/dist/index.d.ts
CHANGED
|
@@ -455,7 +455,7 @@ declare const _default: {
|
|
|
455
455
|
'import/max-dependencies': ["error", {
|
|
456
456
|
max: number;
|
|
457
457
|
}];
|
|
458
|
-
'import/consistent-type-specifier-style': ["error", "prefer-
|
|
458
|
+
'import/consistent-type-specifier-style': ["error", "prefer-top-level-if-only-type-imports"];
|
|
459
459
|
'import/exports-last': "off";
|
|
460
460
|
'import/first': "error";
|
|
461
461
|
'import/group-exports': "off";
|
|
@@ -658,7 +658,9 @@ declare const _default: {
|
|
|
658
658
|
'vitest/valid-describe-callback': "error";
|
|
659
659
|
'vitest/valid-expect': "error";
|
|
660
660
|
'vitest/valid-expect-in-promise': "error";
|
|
661
|
-
'vitest/valid-title': "error"
|
|
661
|
+
'vitest/valid-title': ["error", {
|
|
662
|
+
allowArguments: boolean;
|
|
663
|
+
}];
|
|
662
664
|
'vitest/warn-todo': "off";
|
|
663
665
|
'vitest/no-commented-out-tests': "error";
|
|
664
666
|
'vitest/no-conditional-in-test': "off";
|
package/dist/vitest.d.ts
CHANGED
|
@@ -32,7 +32,9 @@ declare const _default: {
|
|
|
32
32
|
'vitest/valid-describe-callback': "error";
|
|
33
33
|
'vitest/valid-expect': "error";
|
|
34
34
|
'vitest/valid-expect-in-promise': "error";
|
|
35
|
-
'vitest/valid-title': "error"
|
|
35
|
+
'vitest/valid-title': ["error", {
|
|
36
|
+
allowArguments: boolean;
|
|
37
|
+
}];
|
|
36
38
|
'vitest/warn-todo': "off";
|
|
37
39
|
'vitest/no-commented-out-tests': "error";
|
|
38
40
|
'vitest/no-conditional-in-test': "off";
|
package/dist/vitest.js
CHANGED
|
@@ -64,7 +64,10 @@ export default defineConfig({
|
|
|
64
64
|
// the test has already passed.
|
|
65
65
|
'vitest/valid-expect-in-promise': 'error',
|
|
66
66
|
// Empty or dynamic-garbage titles break -t filtering and failure reports.
|
|
67
|
-
|
|
67
|
+
// allowArguments: true lets a title be the imported function reference
|
|
68
|
+
// itself, which is what prefer-describe-function-title (below) demands —
|
|
69
|
+
// without it the two rules deadlock (oxc-project/oxc#18591).
|
|
70
|
+
'vitest/valid-title': ['error', { allowArguments: true }],
|
|
68
71
|
// .todo is the sanctioned marker for planned tests; banning it would push
|
|
69
72
|
// people back to .skip, which no-disabled-tests rightly forbids.
|
|
70
73
|
'vitest/warn-todo': 'off',
|