Skip to content

Commit 7cd5124

Browse files
committed
fix(eslint): add .mjs files to test file pattern for import resolution
The ESLint config was only disabling import resolution checks for .ts and .mts test files, but not .mjs files. This caused linting failures for test/integration/esm-imports.test.mjs. - Add 'test/**/*.mjs' to the test files pattern - Disables n/no-missing-import and import-x/no-unresolved for .mjs tests - Fixes lint errors: "Unable to resolve path to module @socketsecurity/lib/globs"
1 parent 1c9e4b8 commit 7cd5124

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.config/eslint.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ const eslintConfig = [
346346
},
347347
{
348348
// Relax rules for test files - testing code has different conventions
349-
files: ['test/**/*.ts', 'test/**/*.mts'],
349+
files: ['test/**/*.ts', 'test/**/*.mts', 'test/**/*.mjs'],
350350
rules: {
351351
'n/no-missing-import': 'off',
352352
'import-x/no-unresolved': 'off',

0 commit comments

Comments
 (0)