Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
Closed
Description
Before You File a Documentation Request Please Confirm You Have Done The Following...
- I have looked for existingopen or closed documentation requests that match my proposal.
- I haveread the FAQ and my problem is not listed.
Suggested Changes
Pulling fromhttps://twitter.com/_baxuz/status/1597248286108553216 ោ (comment): it's not explicitly mentioned in our docs when & why you would want to enabletsconfigRootDir
.
...but that's about it. It'd be nice if we were more explicit that:
- It's for when your current working directory doesn't match up with your path relativity.
- It's mentioned in the
@typescript-eslint/parser
README as:
Relative paths are interpreted relative to the current working directory if
tsconfigRootDir
is not set. If you intend on running ESLint from directories other than the project root, you should consider usingtsconfigRootDir
. - It's mentioned in the
- Having working directory mismatches is, to my understanding, an unfortunate and to-be-avoided situation?
- We could add workarounds somewhere, such asTroubleshooting & FAQs?
Note: once#5984 is merged, we'll have the package READMEs and included API docs on the site.
Affected URL(s)
https://typescript-eslint.io/docs/linting/typed-linting/monorepos
https://typescript-eslint.io/docs/linting/troubleshooting