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 48
48
"eslint-plugin-react-hooks" : " 4.3.0" ,
49
49
"eslint-plugin-react-native" : " 3.11.0" ,
50
50
"eslint-plugin-unused-imports" : " ^2.0.0" ,
51
- "husky" : " ^7.0.4 " ,
51
+ "husky" : " ^7.0.0 " ,
52
52
"metro-react-native-babel-preset" : " ^0.66.2" ,
53
53
"prettier" : " ^2.5.1" ,
54
54
"typescript" : " ^4.5.4"
57
57
"android" : " npx react-native run-android" ,
58
58
"ios" : " npx react-native run-ios" ,
59
59
"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 " ,
61
61
"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'" ,
63
63
"husky:lint" : " npx husky add .husky/pre-commit 'npm run lint'" ,
64
64
"clean-up" : " rm -rf .git && rm -rf ./assets && git init && npm run husky:setup" ,
65
65
"clean:android" : " cd android && ./gradlew clean" ,
You can’t perform that action at this time.
0 commit comments