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

Setup prettier and pre-commit hooks #40

Merged
merged 4 commits into from
Dec 12, 2022
Merged

Setup prettier and pre-commit hooks #40

merged 4 commits into from
Dec 12, 2022

Conversation

pnavarrc
Copy link
Contributor

@pnavarrc pnavarrc commented Dec 8, 2022

Part of #16 - Setup prettier, eslint and pre-commit hooks.

This PR only configures Prettier and Husky (pre-commit):

This commit is just running prettier on the codebase and fixing a few things.

Not sure if we want to add some custom prettier rules, but this is a start!

Copy link

@mikelehen mikelehen left a comment

Choose a reason for hiding this comment

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

LGTM!

package.json Outdated
@@ -6,7 +6,12 @@
"scripts": {
"develop": "webpack-dev-server --mode development",
"build": "webpack --mode production",
"build:watch": "webpack --watch --mode production"
"build:watch": "webpack --watch --mode production",
"prettier:write": "yarn prettier --write .",

Choose a reason for hiding this comment

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

Not a big deal, but should this include --ignore-unknown to match the lint-staged rule? I'm not 100% sure if it matters though.

@pnavarrc pnavarrc merged commit 8a18d3f into develop Dec 12, 2022
@pnavarrc pnavarrc deleted the pablo/lint-setup branch December 12, 2022 10:53
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