Skip to content

Commit

Permalink
Guarantee typescript-eslint parser resolving. (#7634)
Browse files Browse the repository at this point in the history
### Description

As it turns out, where the parser resolves to depends on package
manager, project setup, configuration, etc. Let's set set the
`tsconfigRootDir` to be __dirname to make sure it uses exactly where we
want.


Closes TURBO-2540
  • Loading branch information
anthonyshew committed Mar 5, 2024
1 parent 94429d0 commit 794f9aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/basic/packages/ui/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ module.exports = {
parser: "@typescript-eslint/parser",
parserOptions: {
project: "./tsconfig.lint.json",
tsconfigRootDir: __dirname,
},
};
1 change: 1 addition & 0 deletions examples/with-yarn/packages/ui/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ module.exports = {
parser: "@typescript-eslint/parser",
parserOptions: {
project: "./tsconfig.lint.json",
tsconfigRootDir: __dirname,
},
};

0 comments on commit 794f9aa

Please sign in to comment.