setup husky create react app code example
Example: setup husky create react app
"scripts": { "start": "react-scripts start", "build": "react-scripts build", "test": "cross-env CI=true react-scripts test --env=jsdom", "eject": "react-scripts eject", "lint": "eslint src"},"husky": { "hooks": { "pre-commit": "npm run lint && npm test", "pre-push": "npm run lint && npm test" }}