UNPKG

@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
// 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' } } }