Skip to content

Commit d4dd222

Browse files
committed
fix(eslint): fix rule config
1 parent 1aa2f1d commit d4dd222

File tree

1 file changed

+1
-1
lines changed
  • packages/eslint-config-recommended/src

1 file changed

+1
-1
lines changed

packages/eslint-config-recommended/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ export function defineScTsConfig(...configs: Parameters<typeof defineConfig>): R
248248
// for files which are not part of the src/ folder and for test files
249249
// it is ok to use dependencies that are listed inside the root package.json (e.g. @shiftcode/eslint-config-recommended)
250250
{
251-
files: ['!**/src/**', '**/*.spec.ts', '**/*.test.ts'],
251+
files: ['!**/src/**/*.{ts,mts,cts,js,mjs,cjs}', '**/*.spec.ts', '**/*.test.ts'],
252252
rules: {
253253
'import/no-extraneous-dependencies': ['error', { packageDir: ['.', '../..'] }],
254254
},

0 commit comments

Comments
 (0)