Single run detection for type-aware linting causing file not found in any of the provided program instances #4093
Labels
package: typescript-estree
Issues related to @typescript-eslint/typescript-estree
vue
issues relating to vue support
Uh oh!
There was an error while loading. Please reload this page.
Repro
We have a large TypeScript and Vue based monorepo with 28 packages, 7.5k files, 776k lines of code (if size of repo matters). We have an issue after some house cleaning our
eslintrc.js
files with the following error message being reported on our ci pipeline during eslint execution:This ticket #3528 indicates a change was applied which differentiates the run on a CI environment from local. We are trying to figure out what the above means, there are little to no hits for that error message, most are about
parserOptions.project
.We can confirm that using the following config passes on our pipeline when we set
allowAutomaticSingleRunInference
to false:I have read the attached ticket and understand the reasoning behind automatically inferring the property however I would like to understand why we can't use the CI mode on our pipeline, is there any documentation that can show us what config we are missing?
My understanding is the configs shouldn't need specific settings to function on CI vs locally but it looks like either we have something configured wrong or there is genuinely some breaking change as a result of that config switch.
Expected Result
expected these messages to not be present during linting:
Actual Result
The error messages above are printed during a CI run.
Additional Info
This is our per project
.eslintrc.js
:This is our root
.eslintrc.js
:In both cases the tsconfig's exist and as mentioned linting works locally.
Below is the
--debug
output of a pipeline lint execution (warning, it's a big file):https://gist.githubusercontent.com/cmcnicholas/ff09387d56af8df30fe6715ff4237595/raw/4a70d8a0e45821974eeb4daf044828f478500f82/pipeline-output-lint.txt
Versions
@typescript-eslint/typescript-estree
5.3.0
TypeScript
4.4.4
node
16.6.1
The text was updated successfully, but these errors were encountered: