-
-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add husky and lint-staged hooks for prettier #5
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.
I suspect you'll want to run prettier against the existing code, so that it is compliant, otherwise future commits will get tripped up by this hook?
"scripts": { | ||
"test": "tsc --noEmit", | ||
"build": "tsup", | ||
"prepublishOnly": "npm run build" | ||
"prepublishOnly": "npm run build", | ||
"prepare": "husky install" | ||
}, |
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.
We probably want to add lint
and format
here to run prettier (check and write respectively) -- open to other naming suggestions
"husky": "^8.0.3", | ||
"lint-staged": "^15.1.0", |
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.
Looks like prettier is missing as a development dependency?
Ah, and once prettier is in the |
Co-authored-by: Matt Cowley <[email protected]>
Co-authored-by: Matt Cowley <[email protected]>
👋 @Dhoni77 checking in to see how this is going? |
As there has been no progress for a couple of weeks now, I'm going to close this out and unassign the issue, so someone else can work on this. Feel free to ask to be reassigned if you find the time to continue on this. |
Closes #1