diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/doc/json.js | 4 | ||||
-rw-r--r-- | tools/eslint-rules/prefer-assert-iferror.js | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tools/doc/json.js b/tools/doc/json.js index aad860f840..455b825275 100644 --- a/tools/doc/json.js +++ b/tools/doc/json.js @@ -39,7 +39,7 @@ marked.setOptions({ }); function doJSON(input, filename, cb) { - const root = {source: filename}; + const root = { source: filename }; const stack = [root]; var depth = 0; var current = root; @@ -329,7 +329,7 @@ function parseSignature(text, sig) { params = params[1]; params = params.split(/,/); var optionalLevel = 0; - const optionalCharDict = {'[': 1, ' ': 0, ']': -1}; + const optionalCharDict = { '[': 1, ' ': 0, ']': -1 }; params.forEach(function(p, i) { p = p.trim(); if (!p) return; diff --git a/tools/eslint-rules/prefer-assert-iferror.js b/tools/eslint-rules/prefer-assert-iferror.js index 0da272d5f6..e152874176 100644 --- a/tools/eslint-rules/prefer-assert-iferror.js +++ b/tools/eslint-rules/prefer-assert-iferror.js @@ -33,7 +33,7 @@ module.exports = { context.report({ node: firstStatement, message: 'Use assert.ifError({{argument}}) instead.', - data: {argument: sourceCode.getText(node.test)} + data: { argument: sourceCode.getText(node.test) } }); } } |