Closed vlad-zhukov closed 6 years ago
Prettier is a good idea!
Just two questions that we should discuss together (didn't we have an ongoing discussion somewhere already?):
+1 for not adding a pre-commit hook. That only made me use --no-verify
more often than not :D
I also agree with Andy in that we still should have an ESLint setup for more code semantics. Could either stick with standard
or try to align Prettier with ESLint by incorporating an ESLint setup, maybe with standard
preset to keep changes to a minimum.
Why no pre-commit hook? Prettier runs fast and this keeps the code formatted, ie it wont stop your commit. I understand that with linters as you do WIP commits, but prettier is not really an issue.
Right, nice that you've reminded me of eslint
, I forgot about that one 😄. Can I set it up in the next PR?
@andywer
yarn format
, and my code is fine again.Yeah, might make most sense to do it in this PR. Could do it in a follow-up PR, but then we should also create an issue for that, so we definitely don't forget about it...
The ESLint issue is on my list (#264)! And I will definitely not forget about anymore because I am going to start working on it right away!
Added eslint
! 🎉
Removed standard in favour of prettier.
Supersedes #263. Unlike that PR I've decided to drop standard completely because it doesn't make any noticeable difference. Also I decided to not setup on commit hook as it's never worked good for me, if someone finds it useful send another PR.
@andywer @zcei @dmitmel @jvanbruegge