Skip to content
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

fix: add an eslint config to shell, falling back to react-app defaults #222

Merged
merged 3 commits into from
Dec 20, 2019

Conversation

amcgee
Copy link
Member

@amcgee amcgee commented Dec 18, 2019

Fixes #197

This adds an eslint config to the shell root which will automatically detect a top-level .eslintrc.js file and load it, or will use react-app as a fallback.

@amcgee amcgee requested review from edoardo and varl December 18, 2019 21:25
@amcgee
Copy link
Member Author

amcgee commented Dec 18, 2019

We could consider automatically enforcing our cli-style React ESLint config, but I think this is OK for now.

Copy link
Contributor

@varl varl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should work fine since react-app plugin for ESLint should be available with the shell (through CRA), right?

@amcgee
Copy link
Member Author

amcgee commented Dec 20, 2019

Should work fine since react-app plugin for ESLint should be available with the shell (through CRA), right?

Yep, it's a dep of react-scripts

@amcgee amcgee merged commit 2c7deae into master Dec 20, 2019
@amcgee amcgee deleted the fix/shell-eslint-config branch December 20, 2019 20:35
dhis2-bot added a commit that referenced this pull request Dec 20, 2019
## [3.0.2](v3.0.1...v3.0.2) (2019-12-20)

### Bug Fixes

* add an eslint config to shell, falling back to react-app defaults ([#222](#222)) ([2c7deae](2c7deae))
@dhis2-bot
Copy link
Contributor

🎉 This PR is included in version 3.0.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

ESLint config not found when missing from application root
3 participants