File tree Expand file tree Collapse file tree 3 files changed +12
-3
lines changed
Expand file tree Collapse file tree 3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+ . " $( dirname " $0 " ) /_/husky.sh"
3+
4+ npx --no-install commitlint --edit
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+ . " $( dirname " $0 " ) /_/husky.sh"
3+
4+ npm run prettier
5+ npm run lint
Original file line number Diff line number Diff line change 4848 "eslint-plugin-react-hooks" : " 4.3.0" ,
4949 "eslint-plugin-react-native" : " 3.11.0" ,
5050 "eslint-plugin-unused-imports" : " ^2.0.0" ,
51- "husky" : " ^7.0.4 " ,
51+ "husky" : " ^7.0.0 " ,
5252 "metro-react-native-babel-preset" : " ^0.66.2" ,
5353 "prettier" : " ^2.5.1" ,
5454 "typescript" : " ^4.5.4"
5757 "android" : " npx react-native run-android" ,
5858 "ios" : " npx react-native run-ios" ,
5959 "start" : " react-native start --reset-cache" ,
60- "husky:setup" : " npx husky-init && npm run husky:commitlint && npm run husky:prettier" ,
60+ "husky:setup" : " npx husky-init && npm run husky:commitlint && npm run husky:prettier && npm run husky:lint " ,
6161 "husky:commitlint" : " npx husky add .husky/commit-msg 'npx --no-install commitlint --edit'" ,
62- "husky:prettier" : " npx husky add .husky/pre-commit 'npm run prettier'" ,
62+ "husky:prettier" : " npx husky set .husky/pre-commit 'npm run prettier'" ,
6363 "husky:lint" : " npx husky add .husky/pre-commit 'npm run lint'" ,
6464 "clean-up" : " rm -rf .git && rm -rf ./assets && git init && npm run husky:setup" ,
6565 "clean:android" : " cd android && ./gradlew clean" ,
You can’t perform that action at this time.
0 commit comments