Skip to content

Commit b97a063

Browse files
authored
chore: narrow down files affected by vitest lint rules (#15000)
The previous glob pattern was incorrect and caused _all_ files to be included, which is not what we want. The new config entry uses `ignores` to ensure all .spec.ts that are **not** .e2e.spec.ts files are targeted.
1 parent 418375c commit b97a063

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

packages/eslint-config/index.mjs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -232,17 +232,15 @@ export const rootEslintConfig = [
232232
files: ['**/*.tsx'],
233233
},
234234
{
235-
name: 'Unit Tests',
235+
name: 'Unit and Integration Tests',
236236
plugins: {
237-
vitest
237+
vitest,
238238
},
239239
rules: {
240240
...vitest.configs.recommended.rules,
241241
},
242-
files: [
243-
'**/*.spec.ts',
244-
'!**/*.e2e.spec.ts',
245-
],
242+
files: ['**/*.spec.ts'],
243+
ignores: ['**/*.e2e.spec.ts'],
246244
},
247245
{
248246
name: 'Payload Config',
@@ -257,6 +255,7 @@ export const rootEslintConfig = [
257255
{
258256
name: 'React Compiler',
259257
...reactCompiler.configs.recommended,
258+
files: ['**/*.tsx'],
260259
},
261260
]
262261

0 commit comments

Comments
 (0)