-
Notifications
You must be signed in to change notification settings - Fork 508
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
Use compatible eslint-config-react-app and eslint-plugin-react-hooks. #890
Use compatible eslint-config-react-app and eslint-plugin-react-hooks. #890
Conversation
This comment has been minimized.
This comment has been minimized.
I guess this is a breaking change for people who relied on the previous React hooks lint rules. |
Yeaaa, it's probably breaking, but I'm not really sure why Per the milestone added here and my comments in #889 , I was planning to release all the ESLint and Prettier upgrades as one breaking change together. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So the CI logs have a different warning now:
warning " > [email protected]" has incorrect peer dependency "[email protected] || 2.x".
🤔
But oddly enough they don't seem to show warnings for all the other peer deps that need upgrading if config-react-app
is upgraded. Several more plugins would need to bumped per its current peerDeps
Ah, here's what the v5.2.1 peerDeps look like, which explains both the current warning and the lack of warnings. All the other changes (including addition of EDIT: yes, they're only updated in the current pre-release line, |
98ff905
to
08b3969
Compare
In light of the discussion in #634 I wonder if it would not be better in the future to inline eslint rules into tsdx own config. That way it would not be forced to wrangle with dependency combinations which in this case are somewhat arbitrary (as package versions reflect rule changes more often than compatibility with eslint versions). Also you would have more control over which new warnings to introduce. |
I'm not sure that would really solve anything and may make TSDX actually have to make more breaking changes, because most rule changes (at least those to |
08b3969
to
4044a6c
Compare
This solves the following warning on yarn install: [email protected]" has incorrect peer dependency "[email protected]".
4044a6c
to
3daf4c3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minimally required change LGTM now. Double-checked and confirmed that there were no other breaking changes and basically no other changes in between 5.0.2 and 5.2.1
Thanks for the contribution!
@allcontributors please add @ludofischer for code |
I've put up a pull request to add @ludofischer! 🎉 |
…jaredpalmer#890) This solves the following warning on yarn install: `[email protected]" has incorrect peer dependency "[email protected]".` `[email protected]` has widened its peerDep range to include `eslint-plugin-react-hooks@2`: https://github.com/facebook/create-react-app/blob/d2f813f8897ffcd2f0b0d2da75d0c44924c92f4d/packages/eslint-config-react-app/package.json#L26
This solves the following warning on yarn install
[email protected]" has incorrect peer dependency "[email protected]".