-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommitlint.config.ts
More file actions
41 lines (39 loc) · 859 Bytes
/
commitlint.config.ts
File metadata and controls
41 lines (39 loc) · 859 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import type { UserConfig, RuleConfigCondition } from "@commitlint/types";
import { RuleConfigSeverity } from "@commitlint/types";
const config: UserConfig = {
extends: ["@commitlint/config-conventional"],
rules: {
"type-enum": [
RuleConfigSeverity.Error,
"always",
[
"build",
"chore",
"ci",
"docs",
"content",
"feat",
"fix",
"perf",
"refactor",
"revert",
"style",
"test",
],
] as [RuleConfigSeverity, RuleConfigCondition, string[]],
},
prompt: {
questions: {
type: {
enum: {
content: {
description: "Changes that affect content, not code",
title: "Content only changes",
emoji: "📝",
},
},
},
},
},
};
export default config;