eslint-config-decent 4.2.35 → 4.2.37

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.cjs CHANGED
@@ -220,14 +220,6 @@ const typescriptCompatRules = {
220
220
  "private-method"
221
221
  ]
222
222
  }
223
- ],
224
- "typescript-compat/naming-convention": [
225
- "error",
226
- {
227
- selector: "enumMember",
228
- format: ["camelCase", "PascalCase", "UPPER_CASE"],
229
- trailingUnderscore: "forbid"
230
- }
231
223
  ]
232
224
  };
233
225
  const importRules = {
@@ -547,7 +539,6 @@ function oxlintConfig(options) {
547
539
  ...eslintCjsEsmRules,
548
540
  ...eslintCompatRules,
549
541
  ...typescriptRules,
550
- ...typescriptCompatRules,
551
542
  ...importRules,
552
543
  ...unicornRules,
553
544
  ...unicornCompatRules,
@@ -560,6 +551,10 @@ function oxlintConfig(options) {
560
551
  ...enableNextJs ? nextjsRules : {}
561
552
  };
562
553
  const overrides = [
554
+ {
555
+ files: ["**/*.ts", "**/*.tsx", "**/*.mts", "**/*.cts"],
556
+ rules: typescriptCompatRules
557
+ },
563
558
  ...enableReact ? [
564
559
  {
565
560
  files: ["**/*.tsx"],
package/dist/oxlint.mjs CHANGED
@@ -218,14 +218,6 @@ const typescriptCompatRules = {
218
218
  "private-method"
219
219
  ]
220
220
  }
221
- ],
222
- "typescript-compat/naming-convention": [
223
- "error",
224
- {
225
- selector: "enumMember",
226
- format: ["camelCase", "PascalCase", "UPPER_CASE"],
227
- trailingUnderscore: "forbid"
228
- }
229
221
  ]
230
222
  };
231
223
  const importRules = {
@@ -545,7 +537,6 @@ function oxlintConfig(options) {
545
537
  ...eslintCjsEsmRules,
546
538
  ...eslintCompatRules,
547
539
  ...typescriptRules,
548
- ...typescriptCompatRules,
549
540
  ...importRules,
550
541
  ...unicornRules,
551
542
  ...unicornCompatRules,
@@ -558,6 +549,10 @@ function oxlintConfig(options) {
558
549
  ...enableNextJs ? nextjsRules : {}
559
550
  };
560
551
  const overrides = [
552
+ {
553
+ files: ["**/*.ts", "**/*.tsx", "**/*.mts", "**/*.cts"],
554
+ rules: typescriptCompatRules
555
+ },
561
556
  ...enableReact ? [
562
557
  {
563
558
  files: ["**/*.tsx"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-decent",
3
- "version": "4.2.35",
3
+ "version": "4.2.37",
4
4
  "description": "A decent ESLint configuration",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",
package/src/oxlint.ts CHANGED
@@ -242,14 +242,6 @@ const typescriptCompatRules: Record<string, DummyRule> = {
242
242
  ],
243
243
  },
244
244
  ],
245
- 'typescript-compat/naming-convention': [
246
- 'error',
247
- {
248
- selector: 'enumMember',
249
- format: ['camelCase', 'PascalCase', 'UPPER_CASE'],
250
- trailingUnderscore: 'forbid',
251
- },
252
- ],
253
245
  };
254
246
 
255
247
  const importRules: Record<string, DummyRule> = {
@@ -599,7 +591,6 @@ export function oxlintConfig(options?: OxlintConfigOptions): OxlintConfig {
599
591
  ...eslintCjsEsmRules,
600
592
  ...eslintCompatRules,
601
593
  ...typescriptRules,
602
- ...typescriptCompatRules,
603
594
  ...importRules,
604
595
  ...unicornRules,
605
596
  ...unicornCompatRules,
@@ -613,6 +604,10 @@ export function oxlintConfig(options?: OxlintConfigOptions): OxlintConfig {
613
604
  };
614
605
 
615
606
  const overrides: OxlintOverride[] = [
607
+ {
608
+ files: ['**/*.ts', '**/*.tsx', '**/*.mts', '**/*.cts'],
609
+ rules: typescriptCompatRules,
610
+ },
616
611
  ...(enableReact
617
612
  ? [
618
613
  {