-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,14 +3,25 @@ | |
"version": "0.1.0", | ||
"private": true, | ||
"dependencies": { | ||
"ajv": "^6.5.2", | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
edieblu
Collaborator
|
||
"husky": "^0.14.3", | ||
"lint-staged": "^7.2.0", | ||
"prettier": "^1.13.7", | ||
"react": "^16.4.1", | ||
"react-dom": "^16.4.1", | ||
"react-scripts": "1.1.4" | ||
}, | ||
"lint-staged": { | ||
"src/**/*.{js,jsx,json,css}": [ | ||
"prettier --single-quote --write", | ||
"git add" | ||
] | ||
}, | ||
"scripts": { | ||
"precommit": "lint-staged", | ||
"start": "react-scripts start", | ||
"build": "react-scripts build", | ||
"test": "react-scripts test --env=jsdom", | ||
"eject": "react-scripts eject" | ||
} | ||
} | ||
} |
did you do the
yarn add husky lint-staged prettier
?because these dependencies should end up in the yarn.lock file
https://github.com/facebook/create-react-app/blob/master/packages/react-scripts/template/README.md#formatting-code-automatically