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

Run Prettier for JS files #16338

Closed
wants to merge 1 commit into from
Closed

Conversation

kimjoar
Copy link
Contributor

@kimjoar kimjoar commented Jan 28, 2018

#15106 seems to have stalled, so I thought I'd try to get the ball going.

This doesn't run Prettier as a pre-commit hook as it takes too long time to run imo:

$ time yarn prettier
✨  Done in 10.01s.

However, in #16339 I show how we can enable this for a specific path, including running Prettier together with ESLint (which means it will hook into the existing pre-commit setup)

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@kimjoar kimjoar requested a review from spalger January 29, 2018 09:15
@@ -30,6 +30,7 @@ module.exports = function (grunt) {
'rejectRejFiles',

'run:eslint',
'run:prettier',
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

ah, i see #16339

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍 Yeah, that was just to keep the PR clean as we squash commit this stuff.

@kimjoar kimjoar closed this Feb 5, 2018
@kimjoar kimjoar mentioned this pull request Feb 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants