diff --git a/README.md b/README.md index a89aaf66828..c17fd08e2e4 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,6 @@ to the git hooks for the project. Create a file called `.opt-in` in the root of the project with the contents: ``` -precommit prepush postmerge postrewrite @@ -48,11 +47,8 @@ postrewrite Or you can include only the hooks you would like to use. -### precommit -Run lint before committing - ### prepush -Run tests before pushing +Run lint before pushing ### postmerge `npm install` after merging diff --git a/package.json b/package.json index a094b12769a..16b2293a87d 100644 --- a/package.json +++ b/package.json @@ -13,8 +13,7 @@ "lint": "eslint . --ext .js,.jsx", "postmerge": "opt --in postmerge --exec 'npm install'", "postrewrite": "opt --in postrewrite --exec 'npm install'", - "precommit": "opt --in precommit --exec 'npm run lint'", - "prepush": "opt --in prepush --exec 'npm run test'", + "prepush": "opt --in prepush --exec 'npm run lint'", "start": "webpack-dev-server --port $npm_package_config_port --content-base=./build", "test": "npm run lint && npm run build" },