Skip to content

Commit

Permalink
Fix typescript languageOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
MajorLift committed Sep 24, 2024
1 parent 29148b8 commit a680d66
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit a680d66

Please sign in to comment.