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
7.18.2 regression: react/jsx-indent lots of false positives #2563
Comments
7.18.1 or .2 has a major regression with tons of false positives for react/jsx-indent. See jsx-eslint/eslint-plugin-react#2563
More direct reproducer: curl -O https://raw.githubusercontent.com/cockpit-project/cockpit/master/pkg/systemd/init.js
node_modules/.bin/eslint ./init.js works fine with 7.18.0, fails with 7.18.2. This file isn't that special, it affects a lot of other files in our tree. This smells like a rather generic parsing regression. |
cc @toshi-toma |
It should definitely only be matching jsxtext/literals inside jsx. What version of eslint are you using? |
We currently use 6.8.0, matching package.json's That is the current version AFAICS. I copied the complete package-lock.json here: https://piware.de/tmp/package-lock.json |
I'm really sorry... Anyway, I created PR.(#2564 ) |
@toshi-toma : Many thanks for the super-fast fix! |
Since the last version 7.18.2, eslinting cockpit gets tons of false positives like these:
on this code, which seems perfectly well indented:
The dozens of other errors are also wrong. Things were fine until 7.18.0, I haven't tested 7.18.1 yet.
The text was updated successfully, but these errors were encountered: