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