feat: add husky and lint-staged

This commit is contained in:
josefaidt 2020-09-30 07:35:27 -05:00
commit 6464da18d9
2 changed files with 294 additions and 13 deletions

View file

@ -36,6 +36,8 @@
"carbon-components-10.19": "npm:carbon-components@10.19",
"comment-parser": "^0.7.5",
"gh-pages": "^3.1.0",
"husky": "^4.3.0",
"lint-staged": "^10.4.0",
"node-sass": "^4.14.1",
"postcss": "^7.0.32",
"prettier": "^2.1.1",
@ -80,5 +82,15 @@
"name": "Adan Ulloa",
"email": "adanug@mx1.ibm.com"
}
]
],
"husky": {
"hooks": {
"pre-commit": "yarn prepack && lint-staged"
}
},
"lint-staged": {
"*.{svelte,md,js,json}": [
"prettier --write"
]
}
}