Skip to content

Commit d25fc67

Browse files
raifdmuellerclaude
andcommitted
fix: allow ESM imports in scripts test files
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent b70b41c commit d25fc67

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

scripts/eslint.config.mjs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ export default [
1717
prettierConfig,
1818
{
1919
files: ['**/*.js'],
20+
ignores: ['**/*.test.js'],
2021
languageOptions: {
2122
ecmaVersion: 2022,
2223
sourceType: 'commonjs',
@@ -27,4 +28,15 @@ export default [
2728
'no-console': 'off',
2829
},
2930
},
31+
{
32+
files: ['**/*.test.js'],
33+
languageOptions: {
34+
ecmaVersion: 2022,
35+
sourceType: 'module',
36+
},
37+
rules: {
38+
'no-unused-vars': ['warn', { argsIgnorePattern: '^_', caughtErrorsIgnorePattern: '^_' }],
39+
'no-console': 'off',
40+
},
41+
},
3042
]

0 commit comments

Comments
 (0)