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 5c5fc32 commit 8531d7bCopy full SHA for 8531d7b
src/lint.ts
@@ -1,7 +1,22 @@
1
import type { LintResult, LintRule, RuleConfig, RuleLevel } from './types'
2
-import { config } from './config'
3
import { rules } from './rules'
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
20
/**
21
* Parse and normalize rule levels
22
*/
0 commit comments