-
-
Notifications
You must be signed in to change notification settings - Fork 224
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
Update Husky and linting configuration #328
Update Husky and linting configuration #328
Conversation
I'm not sure I agree with removing the pre-commit hook. Typically I am also against them when they are blocking but in this case all it does is run prettier on the staged changes and is non-blocking. I agree that it would be good to add a prettier based check to CI also to check consistency as pre-commit hooks are skippable something like: https://prettier.io/docs/en/cli.html#--check |
Non-blocking is ok I guess - we should definitely add a check to CI though. |
Updated to update Husky and the linting configuration so that it runs, rather than removing Husky. Let me know if this isn't what you had in mind. |
Codecov Report
@@ Coverage Diff @@
## main #328 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 109 109
Lines 636 636
Branches 100 100
=========================================
Hits 636 636 Continue to review full report at Codecov.
|
@@ -0,0 +1,3 @@ | |||
*.js text eol=lf |
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.
This probably isn't the best way to fix this, but I tried adding
"endOfLine": "auto",
to prettier
in package.json. but I was still getting lint warnings (on Windows with core.autocrlf true
).
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.
Would be good to figure out how to not do this, no project I've used with prettier needs it so I'm skeptical that this is the best solution.
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.
LGTM
note that this didn't actually run - had to |
What
Update Husky and fix linting configuration.
Why
Linting is not being performed currently by the Git hook.