You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
m3u8-downloader-TypeScript/commitlint.config.js

101 lines
2.9 KiB
JavaScript

export default {
12 months ago
extends: ["@commitlint/config-conventional"], // extends can be nested
parserPreset: "conventional-changelog-conventionalcommits",
12 months ago
prompt: {
settings: {},
messages: {
12 months ago
skip: ":skip",
max: "upper %d chars",
min: "%d chars at least",
emptyWarning: "can not be empty",
upperLimitWarning: "over limit",
lowerLimitWarning: "below limit",
12 months ago
},
types: [
12 months ago
{ value: "feat", name: "feat: ✨ A new feature", emoji: "✨ " },
{ value: "fix", name: "fix: 🐛 A bug fix", emoji: "🐛 " },
12 months ago
{
12 months ago
value: "docs",
name: "docs: 📝 Documentation only changes",
emoji: "📝 ",
12 months ago
},
{
12 months ago
value: "style",
name: "style: 💄 Changes that do not affect the meaning of the code",
emoji: "💄 ",
12 months ago
},
{
12 months ago
value: "refactor",
name: "refactor: 📦️ A code change that neither fixes a bug nor adds a feature",
emoji: "📦️ ",
12 months ago
},
{
12 months ago
value: "perf",
name: "perf: 🚀 A code change that improves performance",
emoji: "🚀 ",
12 months ago
},
{
12 months ago
value: "test",
name: "test: 🚨 Adding missing tests or correcting existing tests",
emoji: "🚨 ",
12 months ago
},
{
12 months ago
value: "build",
name: "build: 🛠 Changes that affect the build system or external dependencies",
emoji: "🛠 ",
12 months ago
},
{
12 months ago
value: "ci",
name: "ci: 🎡 Changes to our CI configuration files and scripts",
emoji: "🎡 ",
},
{
value: "chore",
12 months ago
name: "chore: 🔨 Other changes that don't modify src or test files",
12 months ago
emoji: "🔨 ",
},
{
value: "revert",
name: "revert: ⏪️ Reverts a previous commit",
emoji: ":rewind:",
12 months ago
},
],
useEmoji: true,
confirmColorize: true,
12 months ago
emojiAlign: "center",
12 months ago
questions: {
scope: {
12 months ago
description:
"What is the scope of this change (e.g. component or file name)",
12 months ago
},
subject: {
12 months ago
description:
"Write a short, imperative tense description of the change",
12 months ago
},
body: {
12 months ago
description: "Provide a longer description of the change",
12 months ago
},
isBreaking: {
12 months ago
description: "Are there any breaking changes?",
12 months ago
},
breakingBody: {
description:
12 months ago
"A BREAKING CHANGE commit requires a body. Please enter a longer description of the commit itself",
12 months ago
},
breaking: {
12 months ago
description: "Describe the breaking changes",
12 months ago
},
isIssueAffected: {
12 months ago
description: "Does this change affect any open issues?",
12 months ago
},
issuesBody: {
description:
12 months ago
"If issues are closed, the commit requires a body. Please enter a longer description of the commit itself",
12 months ago
},
issues: {
12 months ago
description: 'Add issue references (e.g. "fix #123", "re #123".)',
},
},
},
};