File tree 2 files changed +20
-2
lines changed
2 files changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -30,9 +30,28 @@ dart pub add --dev commitlint_cli
30
30
### Configuration
31
31
32
32
``` bash
33
- # Configure commitlint to use conventional config
33
+ # Simply use configuration of a package
34
34
echo " include: package:commitlint_cli/commitlint.yaml" > commitlint.yaml
35
35
```
36
+ You can also customize your configuration in ` commitlint.yaml `
37
+ ``` yaml
38
+ # Inherit configuration of a package
39
+ include : package:commitlint_cli/commitlint.yaml
40
+
41
+ # Custom rules
42
+ rules :
43
+ type-case :
44
+ - 2
45
+ - always
46
+ - ' upper-case'
47
+
48
+ # Whether commitlint uses the default ignore rules.
49
+ defaultIgnores : true
50
+ # Pattern that matches commit message if commitlint should ignore the given message.
51
+ ignores :
52
+ - r'^fixup'
53
+ ` ` `
54
+
36
55
37
56
### Test
38
57
Original file line number Diff line number Diff line change 1
-
2
1
import 'is_ignored.dart' ;
3
2
import 'parse.dart' ;
4
3
import 'rules.dart' ;
You can’t perform that action at this time.
0 commit comments