lint-staged/lint-staged
View on GitHub ↗ ★ 14,756 JavaScript
🚫💩 — Run tasks like formatters and linters against files staged in Git
7 mentions on Hacker News by 7 people: 1 story, 6 comments · first 2018-03-09 · latest 2022-10-26
20082026
-
▲ 1
Run linters against staged Git filesstory by Lwrless · 2022-10-26 · 0 comments
-
…For what it is worth, I was evaluating lint-staged [1] and husky [2] for my pre-commit hooks. [1] https://github.com/okonet/lint-staged [2] https://github.com/typicode/husky
comment by WorldMaker · 2021-12-21 · in Pre-commit: framework for managing/maintaining multi-language pre-commit hooks -
>If you've never had a git commit FAIL (eg https://github.com/okonet/lint-staged/issues/565 ) you aren't very experienced with git. I follow Linux kernel posts on vger.kernel.org and I've yet to see Linus complain about a git commit…
comment by alasdair_ · 2020-03-05 · in Please stop recommending Gitflow -
If you've never had a git commit FAIL (eg https://github.com/okonet/lint-staged/issues/565 ) you aren't very experienced with git. By your description, you've probably just used it casually a lot. You don't do anything complicated and…
comment by Supermancho · 2020-03-05 · in Please stop recommending Gitflow -
Agreed, Husky is great. I like using it with lint-staged ( https://github.com/okonet/lint-staged ) to run ESLint and Prettier ( https://github.com/prettier/prettier ).
comment by iBelieve · 2018-07-27 · in Githooks: auto-install client-side hooks inside the repos -
…hook, which grabs staged code, prettifies it and re-stages it. Works like a charm. We use https://github.com/okonet/lint-staged to perform this.
comment by Cthulhu_ · 2018-03-09 · in Using Prettier to format your JavaScript code -
…my ugly code immediately. Also, lint-staged doesn't handle partially staged files properly: https://github.com/okonet/lint-staged/issues/62
comment by tlrobinson · 2018-03-09 · in Using Prettier to format your JavaScript code