create-react-library icon indicating copy to clipboard operation
create-react-library copied to clipboard

setup Husky and Lint-staged

Open frani opened this issue 5 years ago • 1 comments

Also styled the existent code in template folders with prettier --write

sometimes files are not save or may another reason prettier does not run over some files, to avoid commit or publish code without common style, husky and lint-staged helps with that. May be already know, anyway it case if not, I leave a medium post about it

frani avatar Sep 30 '20 13:09 frani

You should add a Prettier configuration file with some explicit format rules at the root level. Without that, it could be different on various environments.

portexe avatar Nov 25 '20 20:11 portexe