@subf/config 0.6.1 → 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.
Files changed (2) hide show
  1. package/dist/oxlint.mjs +5 -12
  2. package/package.json +1 -1
package/dist/oxlint.mjs CHANGED
@@ -124,7 +124,7 @@ const baseRules = {
124
124
  "no-class-assign": "error",
125
125
  "no-compare-neg-zero": "error",
126
126
  "no-cond-assign": ["error", "except-parens"],
127
- "no-console": "warn",
127
+ "no-console": ["warn", { allow: ["warn", "error"] }],
128
128
  "no-const-assign": "error",
129
129
  "no-control-regex": "error",
130
130
  "no-debugger": "error",
@@ -330,7 +330,6 @@ const baseRules = {
330
330
  "import/no-absolute-path": "error",
331
331
  "import/no-cycle": "error",
332
332
  "import/no-duplicates": "error",
333
- "import/no-namespace": "error",
334
333
  "import/no-self-import": "error",
335
334
  "import/no-named-export": "allow",
336
335
  "import/first": "error",
@@ -379,7 +378,7 @@ const ts = {
379
378
  "no-use-before-define": ["error", {
380
379
  classes: false,
381
380
  functions: false,
382
- variables: true
381
+ variables: false
383
382
  }],
384
383
  "typescript/array-type": ["error", { default: "generic" }],
385
384
  "typescript/ban-ts-comment": ["error", { "ts-expect-error": "allow-with-description" }],
@@ -387,7 +386,7 @@ const ts = {
387
386
  "typescript/method-signature-style": ["error", "property"],
388
387
  "typescript/no-confusing-non-null-assertion": "error",
389
388
  "typescript/no-duplicate-enum-values": "error",
390
- "typescript/no-empty-object-type": "error",
389
+ "typescript/no-empty-object-type": ["error", { allowInterfaces: "always" }],
391
390
  "typescript/no-explicit-any": "error",
392
391
  "typescript/no-extra-non-null-assertion": "error",
393
392
  "typescript/no-misused-new": "error",
@@ -421,13 +420,7 @@ const ts = {
421
420
  }
422
421
  };
423
422
  const vitest = {
424
- files: [
425
- "**/__tests__/**/*.?{js,ts,jsx,tsx}",
426
- "**/*.spec.?{js,ts,jsx,tsx}",
427
- "**/*.test.?{js,ts,jsx,tsx}",
428
- "**/*.bench.?{js,ts,jsx,tsx}",
429
- "**/*.benchmark.?{js,ts,jsx,tsx}"
430
- ],
423
+ files: ["**/__tests__/**/*.{js,ts,jsx,tsx}", "**/*.{spec,test,bench,benchmark}.{js,ts,jsx,tsx}"],
431
424
  plugins: ["vitest"],
432
425
  rules: {
433
426
  "vitest/consistent-test-it": ["error", {
@@ -499,7 +492,7 @@ const typeAware = {
499
492
  ]
500
493
  };
501
494
  const markdownOverrideConfig = {
502
- files: ["**/*.md/**/*.?{js,ts,jsx,tsx}"],
495
+ files: ["**/*.md/**/*.{js,ts,jsx,tsx}"],
503
496
  rules: {
504
497
  "no-alert": "off",
505
498
  "no-labels": "off",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@subf/config",
3
- "version": "0.6.1",
3
+ "version": "0.6.2",
4
4
  "description": "Universal configuration for TypeScript, oxlint (+unocss, +solid), oxfmt, and tsdown.",
5
5
  "keywords": [
6
6
  "config",