We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 77c32b5 commit eba5995Copy full SHA for eba5995
packages/react-scripts/template/README.md
@@ -326,13 +326,14 @@ yarn add husky lint-staged prettier
326
327
Now we can make sure every file is formatted correctly by adding a few lines to the `package.json` in the project root.
328
329
-Add the following line to `scripts` section:
+Add the following field to the `package.json` section:
330
331
```diff
332
- "scripts": {
333
-+ "precommit": "lint-staged",
334
- "start": "react-scripts start",
335
- "build": "react-scripts build",
++ "husky": {
++ "hooks": {
++ "pre-commit": "lint-staged"
++ }
336
337
```
338
339
Next we add a 'lint-staged' field to the `package.json`, for example:
0 commit comments