@legislato/legislato-conventions
Version:
This package facilitates the configuration of commit conventions and changelog for Next.js and Express projects
90 lines (89 loc) โข 2.31 kB
JavaScript
// eslint-disable-next-line no-undef
module.exports = {
disableEmoji: false,
format: '{type}{scope}: {emoji}{subject}',
list: [
'feat',
'fix',
'build',
'chore',
'refactor',
'style',
'docs',
'test',
'perf',
'ci',
'revert'
],
maxMessageLength: 64,
minMessageLength: 3,
questions: ['type', 'scope', 'subject', 'body', 'breaking', 'issues'],
scopes: ['core', 'lint', 'npm', 'all', 'test', 'docs', 'release'],
types: {
chore: {
description: "Other changes that don't modify src or test files",
emoji: '๐ฉน',
value: 'chore'
},
ci: {
description: 'Changes to our CI configuration files and scripts',
emoji: '๐ฆ',
value: 'ci'
},
docs: {
description: 'Documentation only changes',
emoji: '๐',
value: 'docs'
},
feat: {
description: 'A new feature',
emoji: 'โจ',
value: 'feat'
},
fix: {
description: 'A bug fix',
emoji: '๐',
value: 'fix'
},
perf: {
description: 'A code change that improves performance',
emoji: 'โก๏ธ',
value: 'perf'
},
refactor: {
description: 'A code change that neither fixes a bug or adds a feature',
emoji: 'โป๏ธ',
value: 'refactor'
},
revert: {
description: 'Reverts a previous commit',
emoji: 'โช',
value: 'revert'
},
build: {
description:
'Changes that affect the build system or external dependencies',
emoji: '๐ ๏ธ',
value: 'build'
},
style: {
description: 'Changes that do not affect the meaning of the code',
emoji: '๐จ',
value: 'style'
},
test: {
description: 'Adding missing tests or correcting existing tests',
emoji: '๐งช',
value: 'test'
},
messages: {
type: "Select the type of change that you're committing:",
customScope: 'Select the scope this component affects:',
subject: 'Write a short, imperative mood description of the change:\n',
body: 'Provide a longer description of the change:\n ',
breaking: 'List any breaking changes:\n',
footer: 'Issues this commit closes, e.g #123:',
confirmCommit: 'The packages that this commit has affected\n'
}
}
}