-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Nudge forward style checks a la eslint-config-standard #1082
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Before committing this, consider using Prettier instead. Maybe we could enable Prettier on all files except server.js?
I'd support dropping it in for the files except server.js. Here's what I wrote about Prettier in #948:
|
Thanks @paulmelnikow, I missed that comment
That's true. However, using a combination of ESLint + Prettier works well. I think you can even run Prettier via ESLint (that is, there's a custom ESLint rule that runs Prettier). |
I'm definitely down for that! Let's do it. |
I think this is the ESLint plugin I was thinking of: https://github.com/prettier/eslint-plugin-prettier. It supports only running prettier on files that have a particular docblock tag in them (eg. There's also eslint-config-prettier that disables ESLint rules that conflict with Prettier. This lets you use some shared ESLint config along with Prettier and not experience any conflicts. |
Because I despise nitpicking stuff like indentation and spacing in pull request comments, I'd like to nudge forward our automated style checking, at least for new files being added.
I don't want to totally rewrite server.js just to get automated style checking… the blame tracking is just too useful. So let's it's just take care of that when we start splitting it out.
More discussion in #948.