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

How to use standard in conjunction with eslint-config-standard-react #885

Closed
mrchief opened this issue May 12, 2017 · 2 comments

Comments

@mrchief
Copy link

commented May 12, 2017

How does one use standard in conjunction with eslint-config-standard-react? Add eslintrc and extend it with eslint-config-standard-react? Isn't that going against the philosophy of standard (no config, no eslintrc)?

Its dupe of feross/standard-react#13 but hoping it'll get an answer here.

@Flet

This comment has been minimized.

Copy link
Member

commented Jun 8, 2017

Yes, it would have to be done using eslint directly instead of standard itself.

Take a look at standard's eslintrc file for a sample of how to do this. Just be sure to npm install all the eslint configs you're referencing and use eslint to run linting.

Closing this issue, but feel free to respond!

@feross

This comment has been minimized.

Copy link
Member

commented Jun 22, 2017

For now, the only way to use that config is to set up eslint yourself. It didn't make sense to force React rules on everyone since there are actually lots of frameworks that use JSX these days besides React and it was causing trouble for those users.

There are some proposals for how to enable using little add-on rule sets that I've been thinking about, but none implemented yet.

@lock lock bot locked as resolved and limited conversation to collaborators May 10, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
3 participants
You can’t perform that action at this time.