@exile-watch/lefthook-config
Shared Lefthook configuration for exile.watch projects
Last updated
Shared Lefthook configuration for exile.watch projects
Last updated
npm i -D @exile-watch/lefthook-config// {root}/package.json
{
"scripts": {
"postinstall": "npx lefthook install",
"lint": ..., // "exit 0" if linting is not set
"lint:apply": ..., // "exit 0" if linting is not set
"format": ... // "exit 0" if formatting is not set
"typecheck": ... // "exit 0" if typecheck is not set
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
}
}// {root}/commitlint.config.js
module.exports = {
extends: ['@commitlint/config-conventional']
};# {root}/lefthook.yml
remotes:
- git_url: https://github.com/exile-watch/splinters
configs:
- packages/lefthook-config/lefthook.yml