-
-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inherit project
configuration from @typescript-eslint/parser
's parserOptions
#102
Comments
PR welcome if you have the idea about how to implement it. |
Instead of reading As far as I know, to add Typescript support to eslint, Please, add your thoughts on this. Maybe I am wrong or this has been done for a known issue/purpose. |
|
Ok, there is a purpose. So, there are no workarounds (as far as I understood)? |
Right |
One of the problems I am running in to is that //...
parserOptions: {
tsconfigRootDir: __dirname,
project: './tsconfig.json',
},
settings: {
'import/resolver': {
typescript: {
alwaysTryTypes: true,
tsconfigRootDir: __dirname,
project: './tsconfig.json',
},
},
}, Adding the tsconfigRoorDir is required in a monorepo to make If the import/resolver were able to use the same values as passed by parserOptions, that would help to solve this issue. |
I still don't get it why not just |
This issue would be resolved after import-js/eslint-plugin-import#2519 been merged. |
project
tsconfig.json
configuration from @typescript-eslint/parser
's parserOptions
project
tsconfig.json
configuration from @typescript-eslint/parser
's parserOptions
project
configuration from @typescript-eslint/parser
's parserOptions
Using @typescript-eslint/parser is recommended to set
project
inparserOptions
.We also need to add the
project
inimport/resolver-> typescript
when using eslint-import-resolver-typescript.Can we omit the first
project
or do we need both even though they are almost the same?Thanks!
The text was updated successfully, but these errors were encountered: