-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
eslint convert-to-inferred stopped working in 19.3 #26775
Comments
This issue was fixed by #26638. Please update to Nx 19.4.4 or 19.5.0 or later. After migrating you might need to run |
hi @leosvelperez |
Node : 20.12.2 nx (global) : 19.5.1
|
even in a newly created angular application using nx it doesn't work
here is how it stop working
please reopen the issue @leosvelperez |
a reprod project https://github.com/robertIsaac/nx-lint-reprod |
@robertIsaac thanks for the detailed reproduction steps. The issue only occurs for standalone workspaces, which the original reproduction steps didn't mention. I've identified the issue now and I'll push a fix for it. |
Thanks for the update |
No worries! Sometimes it's hard to know which little detail might cause an issue. This is why detailed reproduction steps are so important to help us reproduce the issues. TBF, you always provide good information, so keep it up! There was an issue for Windows and ESLint matching your original description that was addressed in the PR I linked before. That's why I thought it was already addressed. |
…efault option values (#27035) <!-- Please make sure you have read the submission guidelines before posting an PR --> <!-- https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr --> <!-- Please make sure that your commit message follows our format --> <!-- Example: `fix(nx): must begin with lowercase` --> <!-- If this is a particularly complex change or feature addition, you can request a dedicated Nx release for this pull request branch. Mention someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they will confirm if the PR warrants its own release for testing purposes, and generate it for you if appropriate. --> ## Current Behavior <!-- This is the behavior we have today --> Converting a root project to inferred results in the plugin registration to have the `includes` option set to `./**/*`. This is invalid and causes no project to be inferred. Additionally, the eslint `convert-to-inferred` generator: - keeps a redundant `config` option, which is not needed because inferred tasks only work with default/known ESLint config files, so there's no need to specify it in the options - converts all `lintFilePatterns` to `args`, which is correct, but it keeps the patterns that are already inferred by the plugin, which leads to duplicated patterns when running the task ## Expected Behavior <!-- This is the behavior we should expect with the changes in this PR --> Converting a root project to inferred should work as expected and result in the `lint` task being inferred for the project. Also, default inferred options should be removed from the target options. ## Related Issue(s) <!-- Please link the issue being fixed so it gets closed when this is merged. --> Fixes #26775 (cherry picked from commit 5217c33)
Hi @leosvelperez |
@robertIsaac are the reproduction steps similar to the one you provided in #26775 (comment)? Either way, yes, go ahead and create a new issue. You can ping me and I'll take a look. |
I can't reproduce any issue with the FWIW, the fix for ESLint should have addressed it for other plugins as well. The root cause of the issue was in a shared utility we use in all the |
when I'm trying to make a reprod, it actually does work |
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context. |
Current Behavior
when I try to run
nx g convert-to-inferred
it throw an errorExpected Behavior
running it to work
GitHub Repo
No response
Steps to Reproduce
nx migrate latest
nx g convert-to-inferred
and choose eslintNx Report
Failure Logs
Package Manager Version
No response
Operating System
Additional Information
it was working in 19.1, reverting this commit does make it work, nothing was updated in the upgrade other than
.nx/workspace-data
being ignored in git and prettierThe text was updated successfully, but these errors were encountered: