Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

How to fail a commit to Git based on errors from ts-styled-plugin? #167

Closed
robicano22 opened this issue Aug 16, 2022 · 1 comment
Closed

Comments

@robicano22
Copy link

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

@mjbvz
Copy link
Contributor

mjbvz commented Apr 4, 2023

Closing as this package has been deprecated in favor of the official styled-components/typescript-styled-plugin fork

@mjbvz mjbvz closed this as completed Apr 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants