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.
So the CI logs have a different warning now:
warning " > eslint-config-react-app@5.2.1" has incorrect peer dependency "eslint-plugin-react-hooks@1.x || 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: eslint-config-react-app@5.0.2" has incorrect peer dependency "eslint-plugin-react-hooks@1.x".
4044a6c to
3daf4c3
Compare
There was a problem hiding this comment.
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: `eslint-config-react-app@5.0.2" has incorrect peer dependency "eslint-plugin-react-hooks@1.x".` `eslint-config-react-app@5.2.1` 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
eslint-config-react-app@5.0.2" has incorrect peer dependency "eslint-plugin-react-hooks@1.x".