mirror of
https://github.com/zoriya/react-native-web.git
synced 2026-05-25 07:34:45 +00:00
Update pre-commit checks
This commit is contained in:
+7
-3
@@ -21,7 +21,6 @@
|
||||
"jest": "jest --config ./scripts/jest/config.js",
|
||||
"lint": "yarn lint:report --fix",
|
||||
"lint:report": "eslint packages scripts",
|
||||
"precommit": "lint-staged",
|
||||
"prerelease": "yarn test && yarn compile && yarn compile:commonjs",
|
||||
"release": "node ./scripts/release/publish.js",
|
||||
"postrelease": "yarn docs:release && yarn benchmarks:release && ",
|
||||
@@ -54,11 +53,11 @@
|
||||
"eslint-plugin-react-hooks": "^4.2.0",
|
||||
"flow-bin": "^0.109.0",
|
||||
"glob": "^7.1.6",
|
||||
"husky": "^3.0.8",
|
||||
"husky": "^4.3.8",
|
||||
"inline-style-prefixer": "^6.0.0",
|
||||
"jest": "^25.5.0",
|
||||
"jest-canvas-mock": "^2.3.1",
|
||||
"lint-staged": "^9.4.2",
|
||||
"lint-staged": "^10.5.4",
|
||||
"npm-run-all": "^4.1.3",
|
||||
"prettier": "^2.2.1",
|
||||
"react": "^17.0.1",
|
||||
@@ -68,6 +67,11 @@
|
||||
"workspaces": [
|
||||
"packages/*"
|
||||
],
|
||||
"husky": {
|
||||
"hooks": {
|
||||
"pre-commit": "lint-staged"
|
||||
}
|
||||
},
|
||||
"lint-staged": {
|
||||
"packages/react-native-web/src/index.js": [
|
||||
"node ./scripts/babel/createModuleMap.js",
|
||||
|
||||
Reference in New Issue
Block a user