diff --git a/@commitlint/format/src/index.js b/@commitlint/format/src/index.js index c9ead5d0cb..1a1daa89c5 100644 --- a/@commitlint/format/src/index.js +++ b/@commitlint/format/src/index.js @@ -62,7 +62,7 @@ function formatResult(result = {}, options = {}) { const decoration = enabled ? chalk[color](sign) : sign; const summary = `${decoration} found ${errors.length} problems, ${ warnings.length - } warnings \n (Need help? -> https://github.com/marionebl/commitlint#what-is-commitlint)\n\n`; + } warnings \n (Need help? -> https://github.com/marionebl/commitlint#what-is-commitlint )\n\n`; return [...problems, enabled ? chalk.bold(summary) : summary]; } diff --git a/@commitlint/format/src/index.test.js b/@commitlint/format/src/index.test.js index 3abfbd522e..bbdd74d623 100644 --- a/@commitlint/format/src/index.test.js +++ b/@commitlint/format/src/index.test.js @@ -6,7 +6,7 @@ import format from '.'; const ok = chalk.bold( `${chalk.green( '✔' - )} found 0 problems, 0 warnings \n (Need help? -> https://github.com/marionebl/commitlint#what-is-commitlint)\n\n` + )} found 0 problems, 0 warnings \n (Need help? -> https://github.com/marionebl/commitlint#what-is-commitlint )\n\n` ); test('does nothing without arguments', t => {