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
@angular-eslint/use-pipe-transform-interface false positive #662
Comments
Hi @jlabaj, I couldn't reproduce it with 12.3.1. Would you mind to share your Also note that we have a test case almost exactly the same as yours that is passing using the latest version: angular-eslint/packages/eslint-plugin/tests/rules/use-pipe-transform-interface/cases.ts Lines 12 to 15 in 8106486
|
@rafaelss95 sure:
and a second level eslintrc.json:
|
Please, in a next time, format JSON using the code snippet here + using a tool like https://jsonformatter.curiousconcept.com, so it become readable 😄 So, I've copied your configs to a test application and still can't reproduce, no reports at all... The best you can do now is to create a minimal reproduction of the problem in a repository, so I can take a look at this. |
@rafaelss95 yes sorry, didn't hit the format code in comment, corrected now. Ok hm I probably wont have time to do a minimum repro. I will try some more things. Maybe I will get back to this later with a minimum repo. |
@rafaelss95 I should use only nx plugins: this is exactly my case |
@jlabaj in that case, can we close this and the other issue? |
It's weird because, as I said some comments above, we have similar test cases that are passing on the latest version (which is even documented in the auto-generated docs based on current tests) + I tested it on a new project and I couldn't reproduce it... @GeorgeKnap btw, which versions of Note that as I also said above, if someone could provide a minimum repro I can take a look. |
migrating NX to latest version did not help. It actually did not update the angular eslint lib... still 12.3.1 |
I know you're looking for a minimal repro, but figured I'd chime in to say that I'm experiencing the same thing and am using angular eslint 12.5.0. The auto-fix is also funny in that it will add about 10 more |
Yes, could you help me to help you? 🥇 I would be more than happy to check out any possible issues, but first I need to understand / see what issue you are facing. I already tried to reproduce it on master here and in a brand new project, but I didn't have luck, so I have my hands tied here. |
Yep, I wasn't sure if this would be closed due to "could not replicate", "lack of activity", etc., so I wanted to add a comment real quick that I was seeing the issue too. Here's a link to what should be a public repo that illustrates the problem. At least it shows the error in VSCode for me. |
Hey @gmiklich, thanks for taking time to make it reproducible and sorry for the delayed response. The issue is indeed reproducible in this environment and the cause is the old ESLint version you have installed (7.10.0 - released at Sep/2020, more than a year ago). To make sure, I've checked all the 7.1.x versions one by one and none of them worked properly, only after updating it to 7.20.0 the report is gone. I didn't go deep into the ESLint repository to really understand what the cause might be, but I'm almost sure that it has something to do with some It's worth noting that if ISSUE_TEMPLATE had been followed from the beginning, we could have the root cause much earlier (even without a repository to clone), as I couldn't reproduce it before because the problem was in the ESLint version, which wasn't present neither in the OP nor in any comment/screenshot. @JamesHenry from our side, would it be a good idea to add a minimum version of ESLint needed to avoid problems like this? |
No need to apologize. I'm sure you have a million things on your plate other than this obscure issue. Thank you so much for digging into it! Also sorry for not including my versions initially. I think I skimmed over the OP's list, so didn't notice the eslint version was left out. But yeah, no repro and an incomplete version list clearly make for a much harder time debugging on your part. I'll be sure to update our eslint package. Thanks again! |
In v15 the minimum required version of ESLint will be bumped to 7.20.0 to formally close this issue |
Hello,
I have updated to angular 12.1.0 from 11 and suddenly I am getting this false positive from my eslint:
These are my versions of @angular-eslint:
"@angular-eslint/builder": "12.3.1",
"@angular-eslint/eslint-plugin": "12.3.1",
"@angular-eslint/eslint-plugin-template": "12.3.1",
"@angular-eslint/schematics": "12.3.1",
"@angular-eslint/template-parser": "12.3.1",
The text was updated successfully, but these errors were encountered: