diff --git a/eslint.config.mjs b/eslint.config.mjs index d58b29dd77..b14799f026 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -88,7 +88,9 @@ const config = tseslint.config({ extends: typescript, languageOptions: { parserOptions: { - project: ['./tsconfig.packages.json'], + sourceType: 'module', + tsconfigRootDir: import.meta.dirname, + project: ['./packages/*/tsconfig.json'], }, }, rules: { @@ -127,6 +129,12 @@ const config = tseslint.config({ { files: ['scripts/*.ts'], extends: nodejs, + languageOptions: { + parserOptions: { + sourceType: 'module', + project: ['./scripts/*/tsconfig.json'], + }, + }, rules: { // All scripts will have shebangs. 'n/shebang': 'off',