@vortiquo/eslint-config 1.2.2-beta.2 → 1.2.2-beta.4

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/base-typescript.js +10 -7
  2. package/package.json +1 -1
@@ -39,14 +39,16 @@ export const baseTypescript = [
39
39
  },
40
40
 
41
41
  // Apply type-checked rules ONLY to TypeScript files
42
- // Use the recommended approach from typescript-eslint docs
43
- ...tseslint.config({
42
+ // Apply strict type-checked rules to TS files
43
+ ...tseslint.configs.strictTypeChecked.map((config) => ({
44
+ ...config,
44
45
  files: TS_FILES,
45
- extends: [
46
- tseslint.configs.strictTypeChecked,
47
- tseslint.configs.stylisticTypeChecked,
48
- ],
49
- }),
46
+ })),
47
+ // Apply stylistic type-checked rules to TS files
48
+ ...tseslint.configs.stylisticTypeChecked.map((config) => ({
49
+ ...config,
50
+ files: TS_FILES,
51
+ })),
50
52
 
51
53
  // TypeScript-specific settings and rules (only for TS files)
52
54
  {
@@ -146,6 +148,7 @@ export const baseTypescript = [
146
148
  files: ['**/*.config.ts', '**/*.config.mts', '**/*.config.cts'],
147
149
  rules: {
148
150
  'no-restricted-imports': 'off',
151
+ '@typescript-eslint/no-unsafe-assignment': 'off',
149
152
  },
150
153
  },
151
154
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vortiquo/eslint-config",
3
- "version": "1.2.2-beta.2",
3
+ "version": "1.2.2-beta.4",
4
4
  "description": "Modern ESLint v9 flat configurations with TypeScript, React, Next.js, and Node.js support",
5
5
  "type": "module",
6
6
  "license": "MIT",