hackathon-starter icon indicating copy to clipboard operation
hackathon-starter copied to clipboard

Implementing Lint-Staged for Prettier and ESLint

Open nirmalhk7 opened this issue 3 years ago • 4 comments

I'd like to know if we should implement lint-staged in package.json: that way we'll be able to lint and prettify all files which are being changed.

If you deem this as a good idea, I'd like to take this up :smile:

nirmalhk7 avatar Oct 06 '21 17:10 nirmalhk7

That's a good idea.

sahat avatar Mar 26 '22 21:03 sahat

Added lint-stage with husky: https://github.com/sahat/hackathon-starter/commit/040728936c9faf7fda6af6904651013b8ae12870

I'm skipping prettier for now because its out-of-the-box rules are in conflict with the current lint rules. We would either need to restyle the entire project and change the current lint rules and/or add a bunch of overrides in .prettierrc to match the current style. @sahat let me know which way you would want to go.

YasharF avatar Jul 13 '23 06:07 YasharF

.prettierrc.json is also a good idea instead of eslint

umangpatel8123 avatar Sep 09 '23 08:09 umangpatel8123