|
1 | | -import { |
2 | | - LexicalElement, |
3 | | - CommitType, |
4 | | - CONVERSION_MATCH_REGEX, |
5 | | -} from "./constants"; |
6 | | -import { UserConfig } from "@commitlint/types"; |
7 | | -import { enumerateValues } from "./utils/enum"; |
8 | | - |
9 | | -const config: UserConfig = { |
10 | | - parserPreset: { |
11 | | - name: "", |
12 | | - path: "", |
13 | | - parserOpts: { |
14 | | - headerPattern: CONVERSION_MATCH_REGEX, |
15 | | - headerCorrespondence: [ |
16 | | - LexicalElement.TYPE, |
17 | | - LexicalElement.SCOPE, |
18 | | - LexicalElement.SUBJECT, |
19 | | - ], |
20 | | - }, |
21 | | - }, |
22 | | - rules: { |
23 | | - // 'subject-exclamation-mark': [2, 'never'], |
24 | | - "footer-leading-blank": [1, "always"], |
25 | | - "header-max-length": [2, "always", 72], |
26 | | - // 'scope-case': [2, 'always', 'lower-case'], |
27 | | - "subject-case": [2, "never", ["upper-case"] as any], |
28 | | - // 'subject-empty': [2, 'never'], |
29 | | - "subject-full-stop": [2, "never", "."], |
30 | | - "type-empty": [2, "never"], |
31 | | - "scope-empty": [1, "never"], |
32 | | - "type-enum": [2, "always", enumerateValues(CommitType)], |
33 | | - }, |
34 | | -}; |
| 1 | +import { config } from "./config"; |
35 | 2 |
|
36 | 3 | export = config; |
0 commit comments