// install_context_view
Commitlint + Husky commit-msg
Install context for /configs/commitlint
run this command in your project root
$ blink apply commitlintWrites this file into your project at commitlint.config.js. Existing files at those paths are replaced.
what gets written
// commitlint.config.jsjavascript
export default {
extends: ['@commitlint/config-conventional'],
rules: {
'scope-enum': [
2,
'always',
[
'site',
'ui',
'cli',
'registry',
'docs',
'deps',
'config',
'release',
],
],
'subject-case': [2, 'never', ['pascal-case', 'upper-case']],
'subject-empty': [2, 'never'],
'subject-full-stop': [2, 'never', '.'],
'type-enum': [
2,
'always',
[
'feat',
'fix',
'docs',
'style',
'refactor',
'perf',
'test',
'build',
'ci',
'chore',
'revert',
],
],
'body-max-line-length': [1, 'always', 100],
'footer-max-line-length': [1, 'always', 100],
},
}