parser
My proposal is suitable for this projectIn #6084 we added the ability to specify parserOptions.project: true
. Doing so indicates each file should be linted with the closest tsconfig.json to that file.
But, what if a repo wants a different TSConfig for files that it matches, and true
for all other files? For example, maybe it'd want:
tsconfig.eslint.json
to apply for *.(c)js
filestsconfig.json
for all other filesWhat if we allow specifiers like project: ['tsconfig.eslint.json', true]
? In essence, this would be allowing configs to include true
inside the already-present string[]
option that says to find the first matching TSConfig.
Example repro case here: https://github.com/JoshuaKGoldberg/repros/tree/typescript-eslint-parserOptions-project-string-true
Additional InfoSomewhat of a sibling issue to #7383. If we end up allowing an object with a type name then this issue would be to change project
to (boolean | string | ThatNewProjectSpecifierType)[]
.
Zamiell, bryan-hoang, so1ve, reduckted, veimox and 4 moresilvenon
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4