Configs: extend project: true
to allow tsconfig.eslint.json
or custom tsconfig.*.json
files
#7943
Closed
2 tasks done
Labels
duplicate
This issue or pull request already exists
package: typescript-estree
Issues related to @typescript-eslint/typescript-estree
Before You File a Proposal Please Confirm You Have Done The Following...
Description
Currently, there are four possible values for project:
true
The latter three offer a lot of flexibility, but use a fundamentally different approach than the first option. Because of that, the first one is necessary for performance in large mono-repos: #1192
However, the first one always uses
tsconfig.json
for linting. So if you have a large mono-repo, in order to be able to lint efficiently, you cannot dedicatetsconfig.json
to building or being a base tsconfig for othertsconfig.*.json
, you have to use it for linting. Before migrating to a mono-repo, my team would usetsconfig.json
for building,tsconfig.lint.json
for linting, andtsconfig.test.json
for testing. No longer being able to do is not ideal.I would like to propose one or both of:
{ nearest: string | string[] }
. E.g.project: { nearest: 'tsconfig.eslint.json' }
orproject: { nearest: [ 'tsconfig.json', 'tsconfig.eslint.json' ] }
true
to also pick uptsconfig.eslint.json
files, since that seems to be the "advised" naming convention (e.g. as seen here)Impacted Configurations
project
Additional Info
No response
The text was updated successfully, but these errors were encountered: