Skip to content

Why are does eslint-config-react-app have "no" dependencies #9069

Answered by mrmckeb
goleary asked this question in General
Discussion options

You must be logged in to vote

There are limitations around this in ESLint today, which they're looking to address. It might be addressed as a part of eslint/rfcs#9.

Currently, ESLint recommends to place dependencies in peerDependencies:
https://eslint.org/docs/developer-guide/shareable-configs#publishing-a-shareable-config

You can see that the Airbnb config does the same:
https://github.com/airbnb/javascript/tree/master/packages/eslint-config-airbnb

PS: I hope it's OK that I converted this to a discussion - we want to try using this a lot more now that it's enabled :)

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@goleary
Comment options

Answer selected by mrmckeb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #9069 on May 28, 2020 10:32.