Skip to content

Commit 173cf75

Browse files
committed
chore: wip
1 parent cd661ef commit 173cf75

File tree

1 file changed

+1
-20
lines changed

1 file changed

+1
-20
lines changed

bin/cli.ts

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,7 @@ import path from 'node:path'
44
import process from 'node:process'
55
import { CAC } from 'cac'
66
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-
}
7+
import { defaultConfig } from '../src/config'
278

289
const cli = new CAC('gitlint')
2910

0 commit comments

Comments
 (0)