Skip to content

Commit

Permalink
fix(typescript-eslint): set sourceType: "module" in base shared con…
Browse files Browse the repository at this point in the history
…fig (#8622)
  • Loading branch information
auvred committed Mar 8, 2024
1 parent 6e29721 commit 9176730
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion eslint.config.mjs
Expand Up @@ -83,7 +83,6 @@ export default tseslint.config(
// in the rare case that we do - just need to manually restart their IDE.
glob: 'Infinity',
},
sourceType: 'module',
project: [
'tsconfig.json',
'packages/*/tsconfig.json',
Expand Down
2 changes: 1 addition & 1 deletion packages/typescript-eslint/src/configs/base.ts
Expand Up @@ -6,7 +6,7 @@ export default (
): FlatConfig.Config => ({
languageOptions: {
parser,
parserOptions: { sourceType: 'module' },
sourceType: 'module',
},
plugins: {
'@typescript-eslint': plugin,
Expand Down

0 comments on commit 9176730

Please sign in to comment.