hackathon-starter
hackathon-starter copied to clipboard
Implementing Lint-Staged for Prettier and ESLint
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:
That's a good idea.
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.
.prettierrc.json is also a good idea instead of eslint