@vortiquo/eslint-config 1.2.2 → 1.2.3

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.
@@ -26,10 +26,32 @@ export const baseTypescript = [
26
26
  },
27
27
  },
28
28
 
29
- // TypeScript parser and language options (scoped to TS files)
29
+ // Allow relative imports in config files (only applies to TS files since
30
+ // no-restricted-imports is only defined in base-typescript)
31
+ {
32
+ name: 'vortiquo/typescript/config-files',
33
+ files: ['**/*.config.ts', '**/*.config.mts', '**/*.config.cts'],
34
+ languageOptions: {
35
+ parser: tseslint.parser,
36
+ parserOptions: {
37
+ projectService: false, // Config files don't need full project analysis
38
+ },
39
+ },
40
+ rules: {
41
+ // Inherit base config file rules
42
+ 'import/no-default-export': 'off',
43
+ 'no-console': 'off',
44
+ // TypeScript-specific overrides
45
+ 'no-restricted-imports': 'off',
46
+ '@typescript-eslint/no-unsafe-assignment': 'off',
47
+ },
48
+ },
49
+
50
+ // TypeScript parser and language options (scoped to TS files, excluding config files)
30
51
  {
31
52
  name: 'vortiquo/typescript-parser',
32
53
  files: TS_FILES,
54
+ ignores: ['**/*.config.ts', '**/*.config.mts', '**/*.config.cts'],
33
55
  languageOptions: {
34
56
  parser: tseslint.parser,
35
57
  parserOptions: {
@@ -140,17 +162,6 @@ export const baseTypescript = [
140
162
  ],
141
163
  },
142
164
  },
143
-
144
- // Allow relative imports in config files (only applies to TS files since
145
- // no-restricted-imports is only defined in base-typescript)
146
- {
147
- name: 'vortiquo/typescript/config-files',
148
- files: ['**/*.config.ts', '**/*.config.mts', '**/*.config.cts'],
149
- rules: {
150
- 'no-restricted-imports': 'off',
151
- '@typescript-eslint/no-unsafe-assignment': 'off',
152
- },
153
- },
154
165
  ];
155
166
 
156
167
  export default baseTypescript;
@@ -21,14 +21,6 @@ export const nodeLibraryJs = [
21
21
  'no-console': 'error',
22
22
  },
23
23
  },
24
- {
25
- name: 'vortiquo/node-library-js/config-files',
26
- files: ['**/*.config.{js,mjs,cjs}', '**/.*rc.{js,mjs,cjs}'],
27
- rules: {
28
- 'import/no-default-export': 'off',
29
- 'no-console': 'off',
30
- },
31
- },
32
24
  ];
33
25
 
34
26
  export default nodeLibraryJs;
package/node-library.js CHANGED
@@ -39,14 +39,6 @@ export const nodeLibrary = [
39
39
  '@typescript-eslint/require-await': 'error',
40
40
  },
41
41
  },
42
- {
43
- name: 'vortiquo/node-library/config-files',
44
- files: ['**/*.config.{js,ts,mjs}', '**/tsup.config.ts'],
45
- rules: {
46
- 'import/no-default-export': 'off',
47
- 'no-console': 'off',
48
- },
49
- },
50
42
  ];
51
43
 
52
44
  export default nodeLibrary;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vortiquo/eslint-config",
3
- "version": "1.2.2",
3
+ "version": "1.2.3",
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",
@@ -67,14 +67,6 @@ export const reactLibraryJs = [
67
67
  'react/jsx-props-no-spreading': 'off',
68
68
  },
69
69
  },
70
- {
71
- name: 'vortiquo/react-library-js/config-files',
72
- files: ['**/*.config.{js,mjs,cjs}', '**/.*rc.{js,mjs,cjs}'],
73
- rules: {
74
- 'import/no-default-export': 'off',
75
- 'no-console': 'off',
76
- },
77
- },
78
70
  ];
79
71
 
80
72
  export default reactLibraryJs;
package/react-library.js CHANGED
@@ -31,14 +31,6 @@ export const reactLibrary = [
31
31
  '@typescript-eslint/explicit-module-boundary-types': 'error',
32
32
  },
33
33
  },
34
- {
35
- name: 'vortiquo/react-library/config-files',
36
- files: ['**/*.config.{js,ts,mjs}', '**/tsup.config.ts'],
37
- rules: {
38
- 'import/no-default-export': 'off',
39
- 'no-console': 'off',
40
- },
41
- },
42
34
  ];
43
35
 
44
36
  export default reactLibrary;
package/server.js CHANGED
@@ -44,14 +44,6 @@ export const server = [
44
44
  '@typescript-eslint/promise-function-async': 'error',
45
45
  },
46
46
  },
47
- {
48
- name: 'vortiquo/server/config-files',
49
- files: ['**/*.config.{js,ts,mjs}'],
50
- rules: {
51
- // Config files often use default exports
52
- 'import/no-default-export': 'off',
53
- },
54
- },
55
47
  ];
56
48
 
57
49
  export default server;