@subf/config 0.6.0 → 0.6.2
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/oxlint.mjs +5 -13
- package/package.json +2 -2
package/dist/oxlint.mjs
CHANGED
|
@@ -75,7 +75,6 @@ const baseConfig = {
|
|
|
75
75
|
"**/*.min.*",
|
|
76
76
|
"**/LICENSE*",
|
|
77
77
|
"**/__snapshots__",
|
|
78
|
-
"**/auto-import?(s).d.ts",
|
|
79
78
|
"**/components.d.ts",
|
|
80
79
|
"_fixtures"
|
|
81
80
|
]
|
|
@@ -125,7 +124,7 @@ const baseRules = {
|
|
|
125
124
|
"no-class-assign": "error",
|
|
126
125
|
"no-compare-neg-zero": "error",
|
|
127
126
|
"no-cond-assign": ["error", "except-parens"],
|
|
128
|
-
"no-console": "warn",
|
|
127
|
+
"no-console": ["warn", { allow: ["warn", "error"] }],
|
|
129
128
|
"no-const-assign": "error",
|
|
130
129
|
"no-control-regex": "error",
|
|
131
130
|
"no-debugger": "error",
|
|
@@ -331,7 +330,6 @@ const baseRules = {
|
|
|
331
330
|
"import/no-absolute-path": "error",
|
|
332
331
|
"import/no-cycle": "error",
|
|
333
332
|
"import/no-duplicates": "error",
|
|
334
|
-
"import/no-namespace": "error",
|
|
335
333
|
"import/no-self-import": "error",
|
|
336
334
|
"import/no-named-export": "allow",
|
|
337
335
|
"import/first": "error",
|
|
@@ -380,7 +378,7 @@ const ts = {
|
|
|
380
378
|
"no-use-before-define": ["error", {
|
|
381
379
|
classes: false,
|
|
382
380
|
functions: false,
|
|
383
|
-
variables:
|
|
381
|
+
variables: false
|
|
384
382
|
}],
|
|
385
383
|
"typescript/array-type": ["error", { default: "generic" }],
|
|
386
384
|
"typescript/ban-ts-comment": ["error", { "ts-expect-error": "allow-with-description" }],
|
|
@@ -388,7 +386,7 @@ const ts = {
|
|
|
388
386
|
"typescript/method-signature-style": ["error", "property"],
|
|
389
387
|
"typescript/no-confusing-non-null-assertion": "error",
|
|
390
388
|
"typescript/no-duplicate-enum-values": "error",
|
|
391
|
-
"typescript/no-empty-object-type": "error",
|
|
389
|
+
"typescript/no-empty-object-type": ["error", { allowInterfaces: "always" }],
|
|
392
390
|
"typescript/no-explicit-any": "error",
|
|
393
391
|
"typescript/no-extra-non-null-assertion": "error",
|
|
394
392
|
"typescript/no-misused-new": "error",
|
|
@@ -422,13 +420,7 @@ const ts = {
|
|
|
422
420
|
}
|
|
423
421
|
};
|
|
424
422
|
const vitest = {
|
|
425
|
-
files: [
|
|
426
|
-
"**/__tests__/**/*.?([cm])[jt]s?(x)",
|
|
427
|
-
"**/*.spec.?([cm])[jt]s?(x)",
|
|
428
|
-
"**/*.test.?([cm])[jt]s?(x)",
|
|
429
|
-
"**/*.bench.?([cm])[jt]s?(x)",
|
|
430
|
-
"**/*.benchmark.?([cm])[jt]s?(x)"
|
|
431
|
-
],
|
|
423
|
+
files: ["**/__tests__/**/*.{js,ts,jsx,tsx}", "**/*.{spec,test,bench,benchmark}.{js,ts,jsx,tsx}"],
|
|
432
424
|
plugins: ["vitest"],
|
|
433
425
|
rules: {
|
|
434
426
|
"vitest/consistent-test-it": ["error", {
|
|
@@ -500,7 +492,7 @@ const typeAware = {
|
|
|
500
492
|
]
|
|
501
493
|
};
|
|
502
494
|
const markdownOverrideConfig = {
|
|
503
|
-
files: ["**/*.md
|
|
495
|
+
files: ["**/*.md/**/*.{js,ts,jsx,tsx}"],
|
|
504
496
|
rules: {
|
|
505
497
|
"no-alert": "off",
|
|
506
498
|
"no-labels": "off",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@subf/config",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.2",
|
|
4
4
|
"description": "Universal configuration for TypeScript, oxlint (+unocss, +solid), oxfmt, and tsdown.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"config",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"access": "public"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@subf/oxlint-plugin": "^0.4.
|
|
45
|
+
"@subf/oxlint-plugin": "^0.4.1"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@types/node": "^24",
|