Update pre-commit checks

This commit is contained in:
Nicolas Gallagher
2021-02-08 22:13:39 -08:00
parent 09ebf7bab5
commit 325fcbf5a0
3 changed files with 215 additions and 266 deletions
+7 -3
View File
@@ -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",