Skip to content

Commit ecf8414

Browse files
committed
fix: Support number of spaces as the alternative type of the indent option
1 parent 46995be commit ecf8414

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ var jsonLintPlugin = function(options) {
7171
var tokens = jsonlint.tokenize(data, parserOptions)
7272
// TODO: Support sorting tor the tokenized input too.
7373
formatted = printer.print(tokens, {
74-
indent: new Array(options.indent + 1).join(' '),
74+
indent: options.indent,
7575
pruneComments: options.pruneComments,
7676
stripObjectKeys: options.stripObjectKeys
7777
}) + '\n'

0 commit comments

Comments
 (0)