react-native-boilerplate
react-native-boilerplate copied to clipboard
Setup pre-commit hook to lint the files before comitting
Since the .git folder is not versioned I created the .githooks folder, where the pre-commit script resides.
I created a setup-pre-commit-linting npm script, which simply sets the git hooks directory to .githooks. This will be automatically executed after npm install. #15
Hi @Andras-Simon thanks for the PR, currently it is not running npm run lint
. Am I missing something, please let me know 😃
Hi @JayaKrishnaNamburu ,
if you run npm install
it will set up the hook for you.
You can also use npm run setup-pre-commit-linting
if you already ran npm install
.