Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const DEFAULT_OPTIONS = {
console: true, // default true
tags: [], // default TODO
reporter: 'markdown', // default markdown
reporterOptions: {}, // additional reporter options
skipUnsupported: true, // skip unsupported files
suppressFileOutput: false, // don't output to file,
relativeFilePath: true, // display relative file paths in report
Expand Down Expand Up @@ -63,7 +64,10 @@ function reporter(options, files) {
console.log('\n\n');
}

output = leasot.reporter(todos, {reporter: options.reporter, spacing: 2});
output = leasot.reporter(todos, Object.assign({
reporter: options.reporter,
spacing: 2
}, options.reporterOptions));

if (output.length > 0) {
let outputFilename = options.filename || '';
Expand Down
Loading