eslint-plugin-turbo does not pick up env changes is turbo.json when using shared eslint-config #10140
Closed
1 task done
Labels
area: ergonomics
Issues and features impacting the developer experience of using turbo
Uh oh!
There was an error while loading. Please reload this page.
Verify canary release
Link to code that reproduces this issue
https://github.com/YassBaer/eslint-config-turbo-bug
Which canary version will you have in your reproduction?
turbo@2.4.4, tested on turbo@2.4.5-canary.2 as well
Environment information
Expected behavior
When adding an env variable's Name to the turbo.json, the eslint warning/error should disappear. When it is removed, the warning should reappear.
I do however find it strange to add both the .env file to
inputs
and the variable names toenv
. Am I not understanding the setup process correctly?Actual behavior
In the given repo (based on the basic example to have eslint setup) adding the variable into turbo.json does not resolve the eslint issue.
turbo run lint --force
still fails/shows an eslint error. Only when changing thebase.js
-eslint-config within@repo/eslint-config
, which contains the eslint-plugin-turbo, the error gets resolved.After that, the variable can safely be removed from turbo.json, as subsequent calls of
turbo run lint --force
will still show no eslint errors. Only after changingbase.js
again, the error reappears.To Reproduce
See explanation in "Actual Behavior" and commits in repo
Additional context
This Bug appears in the current stable version as well as the canary (The repo is using 2.4.4, as I've read the request for canary version too late and have already created step by step commits showing the bug, however quick tests with the canary versions showed the same results). I have not yet tested older versions.
The issue appears in local development.
The text was updated successfully, but these errors were encountered: