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
Labels
Milestone
Description
Before You File a Bug Report Please Confirm You Have Done The Following...
- I have tried restarting my IDE and the issue persists.
- I have updated to the latest version of the packages.
- I havesearched for related issues and found none that matched my issue.
- I haveread the FAQ and my problem is not listed.
Issue Description
Moving#8030 (reply in thread) into a standalone issue: users are going to want to be able to lint.eslintrc.cjs
files without including them in thetsconfig.json
compilerOptions.allow
andinclude
. But the project service as-is provides a "blank slate" set of default compiler options when a file isn't included in a loadedtsconfig.json
.
Proposal: if a file is included inallowDefaultProjectForFiles
(added in#7752) and isn't given compiler options from a loaded TSConfig, instead give it the compiler options for the nearesttsconfig.json
?
Reproduction Repository Link
https://github.com/JoshuaKGoldberg/repros/tree/ts-eslint-project-service-not-included
Repro Steps
- clone the repo
npm install
npm lint
Versions
package | version |
---|---|
@typescript-eslint/parser | 6.18.0 |
@typescript-eslint/typescript-estree | 6.18.0 |
TypeScript | 5.3.3 |