We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd661ef commit 173cf75Copy full SHA for 173cf75
bin/cli.ts
@@ -4,26 +4,7 @@ import path from 'node:path'
4
import process from 'node:process'
5
import { CAC } from 'cac'
6
import { version } from '../package.json'
7
-
8
-// Create a default config in case the import fails
9
-const defaultConfig = {
10
- verbose: false,
11
- rules: {
12
- 'conventional-commits': 2,
13
- 'header-max-length': [2, { maxLength: 72 }],
14
- 'body-max-line-length': [2, { maxLength: 100 }],
15
- 'body-leading-blank': 2,
16
- 'no-trailing-whitespace': 1,
17
- },
18
- defaultIgnores: [
19
- '^Merge branch',
20
- '^Merge pull request',
21
- '^Merged PR',
22
- '^Revert ',
23
- '^Release ',
24
- ],
25
- ignores: [],
26
-}
+import { defaultConfig } from '../src/config'
27
28
const cli = new CAC('gitlint')
29
0 commit comments