|
|
@@ -20,7 +20,14 @@
|
|
|
"scripts": {
|
|
|
"start": "react-scripts start",
|
|
|
"build": "react-scripts build",
|
|
|
+ "precommit": "lint-staged",
|
|
|
"test": "react-scripts test --env=jsdom",
|
|
|
"eject": "react-scripts eject"
|
|
|
+ },
|
|
|
+ "lint-staged": {
|
|
|
+ "*.js": [
|
|
|
+ "prettier --write",
|
|
|
+ "git add"
|
|
|
+ ]
|
|
|
}
|
|
|
}
|