-
npm install prettier --save-dev --save-exact
-
npx mrm lint-staged
-
npm install --save-dev @commitlint/{cli,config-conventional}
-
echo "module.exports = {extends: ['@commitlint/config-conventional']};" > commitlint.config.js
-
edit package.json:
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"lint-staged": {
"apps/**/*.{ts, json, scss, html}": [
"prettier --write",
"git add"
],
"libs/**/*.{ts, json, scss, html}": [
"prettier --write",
"git add"
]
}
}