List ESLint and plugins as peerDependencies + use babel-eslint
parser
#8
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Sorry - this is some back and forth after #7.
But when I was trying to install the update to our Web-Expensify repository I noticed that ESLint does not scan subdirectories of
node_modules/
for plugins anymore.So it is not enough to list e.g.
eslint-plugin-react
as a dependency of this package anymore, but we need to actually install it as a separate first-level dependency in Web-Expensify.To do so properly, you'd mention them here as
peerDependency
.Extra note: ESLint is working on undoing that at some point again, the RFC proposal was accepted already: eslint/rfcs#7
But the actual implementation is still pending: eslint/rfcs#14
And I don't really want to hold on that now.
Second thing: We need to use
babel-eslint
as our parser, because (for whatever reason) ESLint seems to have dropped the support to do React out of the box. I couldn't really find the changelog item pointing that out, but with this change everything is working again. Allegedly it has always been like that, but that made me wonder how it has worked in the past for us. Let me know if you have other ideas, but we acn also just merge this as is.