"gitHooks": {
"pre-commit": "cross-env PRE_COMMIT=true lint-staged"
},
package.json
module.exports = {
'*.js': [
'yarn lint:eslint',
'yarn lint:prettier',
'git add',
'yarn test:unit:file'
]
}
lint-staged.config.js
{
"script": {
"scope": "vue",
"prefix": "script",
"body": [
"<script>",
"export default {",
"\t${0}",
"}",
"</script>"
],
"description": "<script>"
}
}