Skip to content

Commit

Permalink
fix husky hook
Browse files Browse the repository at this point in the history
  • Loading branch information
kesha-antonov committed Aug 19, 2024
1 parent a0408ae commit 8c41021
Show file tree
Hide file tree
Showing 3 changed files with 311 additions and 11 deletions.
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
yarn lint-staged
24 changes: 13 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,24 +30,25 @@
"lib"
],
"scripts": {
"build": "rm -rf lib/ && node_modules/.bin/tsc && cp flow-typedefs/*.js.flow lib/",
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
"lint:fix": "./node_modules/.bin/eslint ./src/*.{ts,tsx} --fix",
"build": "rm -rf lib/ && yarn tsc && cp flow-typedefs/*.js.flow lib/",
"lint": "yarn eslint src",
"lint:staged": "yarn eslint --cache --fix",
"prepublishOnly": "yarn lint && yarn build && yarn test",
"prettier": "./node_modules/.bin/prettier --write \"src/**/*.{ts,tsx}\"",
"prettier": "yarn prettier --write \"src/**/*.{ts,tsx}\"",
"start": "cd example && expo start",
"start:web": "cd example && expo start -w --dev",
"test": "TZ=Europe/Paris jest --no-watchman",
"test:coverage": "TZ=Europe/Paris jest --coverage",
"test:watch": "TZ=Europe/Paris jest --watch",
"tsc": "node_modules/.bin/tsc --noEmit",
"tsc:watch": "node_modules/.bin/tsc --watch --noEmit",
"fresh": "yarn start --reset-cache"
"tsc": "yarn tsc --noEmit",
"tsc:watch": "yarn tsc --watch --noEmit",
"fresh": "yarn start --reset-cache",
"prepare": "yarn husky"
},
"husky": {
"hooks": {
"pre-commit": "yarn lint:fix && yarn prettier && yarn tsc"
}
"lint-staged": {
"src/**/*.{json,js,jsx,ts,tsx}": [
"yarn lint:staged", "yarn prettier", "yarn tsc"
]
},
"dependencies": {
"@expo/react-native-action-sheet": "4.1.0",
Expand Down Expand Up @@ -92,6 +93,7 @@
"husky": "9.1.4",
"jest": "29.7.0",
"json": "11.0.0",
"lint-staged": "^15.2.9",
"prettier": "3.3.3",
"react": "18.3.1",
"react-dom": "18.3.1",
Expand Down
Loading

0 comments on commit 8c41021

Please sign in to comment.