News for hackers. Stuff that matters.
Re:Show HN: ECSS – Simple rules for efficient CSS by adr1an on Wednesday March 13, 2024 @05:33PM (#39697826)
A pre-commit script would be nice and easy entry (at least for me)
Re:Show HN: ECSS – Simple rules for efficient CSS by emmacharp on Wednesday March 13, 2024 @05:42PM (#39697904)
As of now, you can integrate the Stylelint config in the editor/IDE of your choice to have live linting (tested with VS Code and Vim). Or you can run stylelint manually in the terminal.

Didn't think about git pre-commit hooks to be honest. But I'll look into it. If you have any ideas/suggestions, they are very welcome!

Re:Show HN: ECSS – Simple rules for efficient CSS by CSSer on Friday March 15, 2024 @10:08AM (#39715903)
Check out lint-staged and husky within the node ecosystem.