Skip to content

Commit 55eef97

Browse files
committed
fix(lint): select correct files
1 parent b17c10b commit 55eef97

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

eslint.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const hasPlaywright = has('playwright')
2121

2222
const vitestFiles = ['**/__tests__/**/*', '**/*.test.*', '**/*.spec.*']
2323
const testFiles = ['**/tests/**', '**/#tests/**', ...vitestFiles]
24-
const playwrightFiles = ['**/e2e/**']
24+
const playwrightFiles = ['**/tests/e2e/**']
2525

2626
export const config = [
2727
{
@@ -313,8 +313,7 @@ export const config = [
313313

314314
hasPlaywright
315315
? {
316-
files: ['**/tests/*.ts?(x)', '**/tests/*.js?(x)'],
317-
ignores: testFiles,
316+
files: [...playwrightFiles],
318317
plugins: {
319318
playwright: (await import('eslint-plugin-playwright')).default,
320319
},

0 commit comments

Comments
 (0)