You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.
I have a TS/styled-components project with a Husky pre-commit hook that runs a couple linting/code-style scripts prior to being able to commit to Git. But they don't fail on errors within styled components.
I have a line of styling code without a colon i.e.: padding 20px 15px 15px 15px;
And while it's caught in the problems tab in VSCode and displayed as an error by ts-styled-plugin, my dev was still able to commit this (and actually the browser still recognized the rule correctly).
Anyway I'm hoping there's a script I can run in the pre-commit hook that while fail the commit before it happens on errors within the css`` blocks.
Thanks
The text was updated successfully, but these errors were encountered:
I have a TS/styled-components project with a Husky pre-commit hook that runs a couple linting/code-style scripts prior to being able to commit to Git. But they don't fail on errors within styled components.
I have a line of styling code without a colon i.e.:
padding 20px 15px 15px 15px;
And while it's caught in the problems tab in VSCode and displayed as an error by ts-styled-plugin, my dev was still able to commit this (and actually the browser still recognized the rule correctly).
Anyway I'm hoping there's a script I can run in the pre-commit hook that while fail the commit before it happens on errors within the css`` blocks.
Thanks
The text was updated successfully, but these errors were encountered: