Skip to content

Commit 8531d7b

Browse files
committed
chore: wip
1 parent 5c5fc32 commit 8531d7b

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

src/lint.ts

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,22 @@
11
import type { LintResult, LintRule, RuleConfig, RuleLevel } from './types'
2-
import { config } from './config'
32
import { rules } from './rules'
43

4+
// Default configuration as fallback
5+
const defaultConfig = {
6+
verbose: true,
7+
rules: {
8+
'conventional-commits': 2,
9+
'header-max-length': [2, { maxLength: 72 }],
10+
'body-max-line-length': [2, { maxLength: 100 }],
11+
'body-leading-blank': 2,
12+
'no-trailing-whitespace': 1,
13+
},
14+
ignores: [] as string[],
15+
}
16+
17+
// Use default config
18+
const config = defaultConfig
19+
520
/**
621
* Parse and normalize rule levels
722
*/

0 commit comments

Comments
 (0)