mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-23 03:54:28 +00:00
refactor(lefthook): slice config file into dedicated config files
This commit is contained in:
28
lefthook/commitlint.yml
Normal file
28
lefthook/commitlint.yml
Normal file
@@ -0,0 +1,28 @@
|
||||
---
|
||||
# No official docker images are available at the time of writing, falling back to the local command.
|
||||
|
||||
|
||||
bootstrap:
|
||||
commands:
|
||||
commitlint:
|
||||
run: |-
|
||||
npm install --save-dev '@commitlint/cli' '@commitlint/config-conventional'
|
||||
cat <<EOF > '.commitlintrc.js'
|
||||
module.exports = {
|
||||
extends: [
|
||||
'@commitlint/config-conventional'
|
||||
]
|
||||
}
|
||||
EOF
|
||||
|
||||
debug:
|
||||
commands:
|
||||
commitlint-config:
|
||||
glob: '.commitlintrc.js'
|
||||
run: node_modules/.bin/commitlint --print-config
|
||||
|
||||
|
||||
commit-msg:
|
||||
commands:
|
||||
lint: &commitlint
|
||||
run: node_modules/.bin/commitlint --edit
|
||||
Reference in New Issue
Block a user