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 over codebase #13

Closed
wants to merge 2 commits into from
Closed

Conversation

neilff
Copy link
Contributor

@neilff neilff commented Dec 12, 2017

@jdeal Can you review these changes?

The second commit is running Prettier over the codebase using the newly added npm run format command.

Copy link
Contributor

@jdeal jdeal left a comment

Choose a reason for hiding this comment

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

@neilff 😱 I started a review and then never submitted it. This is totally cool but of course it'll have to be rerun at this point. Sorry!

@@ -8,6 +8,7 @@
"prebuild": "rm -rf lib && mkdir -p lib",
"build": "babel src --out-dir lib && rollup -c",
"prepublish": "npm run build",
"format": "prettier --write '**/*.js' && eslint --fix src test rollup.config.js",
Copy link
Contributor

Choose a reason for hiding this comment

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

What's the reason for eslint fixing a set of directories vs a glob for prettier? Just a difference in the args they take?

@jdeal
Copy link
Contributor

jdeal commented Jun 8, 2018

I wonder though @neilff, could we add the format command to prepublish so we're always properly formatted at least when we publish? We could add a precommit hook too, but that's a bit more involved so could be saved for another PR.

@neilff neilff closed this Oct 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants