1+ export default {
2+ parserPreset : 'conventional-changelog-conventionalcommits' ,
3+ prompt : {
4+ questions : {
5+ body : {
6+ description : 'Provide a longer description of the change'
7+ } ,
8+ breaking : {
9+ description : 'Describe the breaking changes'
10+ } ,
11+ breakingBody : {
12+ description :
13+ 'A BREAKING CHANGE commit requires a body. Please enter a longer description of the commit itself'
14+ } ,
15+ isBreaking : {
16+ description : 'Are there any breaking changes?'
17+ } ,
18+ isIssueAffected : {
19+ description : 'Does this change affect any open issues?'
20+ } ,
21+ issues : {
22+ description : 'Add issue references (e.g. "fix #123", "re #123".)'
23+ } ,
24+ issuesBody : {
25+ description :
26+ 'If issues are closed, the commit requires a body. Please enter a longer description of the commit itself'
27+ } ,
28+ scope : {
29+ description : 'What is the scope of this change (e.g. component or file name)'
30+ } ,
31+ subject : {
32+ description : 'Write a short, imperative tense description of the change'
33+ } ,
34+ type : {
35+ description : "Select the type of change that you're committing" ,
36+ enum : {
37+ build : {
38+ description :
39+ 'Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)' ,
40+ emoji : '🛠' ,
41+ title : 'Builds'
42+ } ,
43+ chore : {
44+ description : "Other changes that don't modify src or test files" ,
45+ emoji : '♻️' ,
46+ title : 'Chores'
47+ } ,
48+ ci : {
49+ description :
50+ 'Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)' ,
51+ emoji : '⚙️' ,
52+ title : 'Continuous Integrations'
53+ } ,
54+ docs : {
55+ description : 'Documentation only changes' ,
56+ emoji : '📚' ,
57+ title : 'Documentation'
58+ } ,
59+ feat : {
60+ description : 'A new feature' ,
61+ emoji : '✨' ,
62+ title : 'Features'
63+ } ,
64+ fix : {
65+ description : 'A bug fix' ,
66+ emoji : '�' ,
67+ title : 'Bug Fixes'
68+ } ,
69+ perf : {
70+ description : 'A code change that improves performance' ,
71+ emoji : '🚀' ,
72+ title : 'Performance Improvements'
73+ } ,
74+ refactor : {
75+ description : 'A code change that neither fixes a bug nor adds a feature' ,
76+ emoji : '📦' ,
77+ title : 'Code Refactoring'
78+ } ,
79+ revert : {
80+ description : 'Reverts a previous commit' ,
81+ emoji : '🗑' ,
82+ title : 'Reverts'
83+ } ,
84+ style : {
85+ description :
86+ 'Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)' ,
87+ emoji : '💎' ,
88+ title : 'Styles'
89+ } ,
90+ test : {
91+ description : 'Adding missing tests or correcting existing tests' ,
92+ emoji : '🚨' ,
93+ title : 'Tests'
94+ } ,
95+ wip : {
96+ description : 'Work in progress' ,
97+ emoji : '🚧' ,
98+ title : 'Work In Progress'
99+ }
100+ }
101+ }
102+ }
103+ } ,
104+ rules : {
105+ 'body-leading-blank' : [ 1 , 'always' ] ,
106+ 'body-max-line-length' : [ 2 , 'always' , 300 ] ,
107+ 'footer-leading-blank' : [ 1 , 'always' ] ,
108+ 'footer-max-line-length' : [ 2 , 'always' , 100 ] ,
109+ 'header-max-length' : [ 2 , 'always' , 100 ] ,
110+ 'subject-case' : [ 2 , 'never' , [ 'sentence-case' , 'start-case' , 'pascal-case' , 'upper-case' ] ] ,
111+ 'subject-empty' : [ 2 , 'never' ] ,
112+ 'subject-full-stop' : [ 2 , 'never' , '.' ] ,
113+ 'type-case' : [ 2 , 'always' , 'lower-case' ] ,
114+ 'type-empty' : [ 2 , 'never' ] ,
115+ 'type-enum' : [
116+ 2 ,
117+ 'always' ,
118+ [
119+ 'build' ,
120+ 'chore' ,
121+ 'ci' ,
122+ 'docs' ,
123+ 'feat' ,
124+ 'fix' ,
125+ 'perf' ,
126+ 'refactor' ,
127+ 'revert' ,
128+ 'style' ,
129+ 'test' ,
130+ 'wip'
131+ ]
132+ ]
133+ }
134+ }
0 commit comments