UNPKG
@commitlint/lint
Version:
latest (19.8.1)
19.8.1
19.8.0
19.7.1
19.6.0
19.5.0
19.4.1
19.2.2
19.1.0
19.0.3
19.0.0
18.6.1
18.6.0
18.5.0
18.4.4
18.4.3
18.4.2
18.4.0
18.1.0
18.0.0
17.8.1
17.8.0
17.7.0
17.6.7
17.6.6
17.6.5
17.6.3
17.6.1
17.6.0
17.4.4
17.4.3
17.4.2
17.4.0
17.3.0
17.2.0
17.1.0
17.0.3
17.0.0
16.2.4
16.2.1
16.0.0
15.0.0
14.1.0
14.0.0
13.2.0
13.1.0
13.0.0
12.1.4
12.1.3
12.1.2
12.1.1
12.1.0
12.0.1
12.0.0
11.0.0
10.0.0
9.1.2
9.1.1
9.1.0
9.0.1
9.0.0
8.3.6
8.3.5
8.3.4
8.3.2
8.3.0
8.2.0
8.1.0
8.0.0
7.6.0
7.5.2
7.5.1
7.5.0
7.4.0
7.3.2
7.3.1
7.2.1
7.2.0
7.1.2
7.1.1
7.1.0
7.0.0
6.2.0
6.1.3
6.1.2
6.1.1
Lint a string against commitlint rules
commitlint.js.org
conventional-changelog/commitlint
@commitlint/lint
/
lib
/
commit-message.js
7 lines
•
280 B
JavaScript
View Raw
1
2
3
4
5
6
7
export
const
buildCommitMessage
= (
{ header, body, footer, }
) => {
let
message = header; message = body ?
`
${message}
\n\n
${body}
`
: message; message = footer ?
`
${message}
\n\n
${footer}
`
: message;
return
message ||
''
; };
//# sourceMappingURL=commit-message.js.map