npx prettier --write .
{
"gitHooks": {
"pre-commit": "echo \"pre-commit: run...\" && exit 1"
},
"eslintConfig": {
"extends": ["eslint:recommended", "plugin:prettier/recommended"]
},
"prettier": {
"semi": true,
"singleQuote": true,
"tabWidth": 2
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"pre-push": "npm test"
}
},
"lint-staged": {
"*.{js,jsx}": [
"pretty-quick --staged",
"eslint --fix",
"git add"
]
},
"gitHooks": {
"pre-commit": "pretty-quick --staged"
},
"lint-staged": {
"*.js": ["eslint --fix", "prettier --write"]
},
"scripts": {
"prepare": "husky install"
}
}