ESLint randomly started enforcing new rule which is incorrect and breaking my builds #16278
Closed
1 task
Labels
archived due to age
This issue has been archived; please open a new issue for any further discussion
bug
ESLint is working incorrectly
repro:needed
Projects
Environment
Node version:
v16.15.1
npm version:
8.19.0
Local ESLint version:
8.23.0
Global ESLint version: N/A
Operating System: macOS Big Sur / M1 Mac
What parser are you using?
Default (Espree)
What did you do?
Configuration
My code is viewable here.
I went through my old vercel builds and found where it stopped working—I updated some packages and that was it. I just tried to revert back to all the old package versions where the builds were working fine and I still am getting the errors now.
I'm not sure why ESLint decided to enforce this rule randomly or why it's throwing an error even though it's a real property. I know I can ignore it with next.js configs but I'm instead trying to figure out what's happening here.
I also have an almost identical project with the same setup code and up-to-date packages in which I'm not having this issue. I can't understand why it's only happening on this repo.
If you have any ideas as to what's happening please let me know, thank you.
Posted over at next.js repo as well.
What did you expect to happen?
My build should pass.
What actually happened?
My build failed:
Error: Unknown property 'key' found react/no-unknown-property
This is a real property and was working before with no issues, errors, or warnings.
Participation
Additional comments
No response
The text was updated successfully, but these errors were encountered: