We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 12e97e2 commit ec3da92Copy full SHA for ec3da92
1 file changed
@commitlint/format/src/index.js
@@ -3,7 +3,12 @@ import chalk from 'chalk';
3
const DEFAULT_SIGNS = [' ', '⚠', '✖'];
4
const DEFAULT_COLORS = ['white', 'yellow', 'red'];
5
6
-export default function format(report = {}, options = {}) {
+module.exports = format;
7
+module.exports.default = format;
8
+module.exports.format = format;
9
+module.exports.formatResult = formatResult;
10
+
11
+function format(report = {}, options = {}) {
12
const {results = []} = report;
13
14
if (results.length > 0) {
@@ -38,7 +43,7 @@ function formatInput(result = {}, options = {}) {
38
43
return `\n${decoration} input: ${decoratedInput}\n`;
39
44
}
40
45
41
-export function formatResult(result = {}, options = {}) {
46
+function formatResult(result = {}, options = {}) {
42
47
const {
48
signs = DEFAULT_SIGNS,
49
colors = DEFAULT_COLORS,
0 commit comments