Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJames M Snell <jasnell@gmail.com>2017-09-20 20:36:14 +0300
committerJames M Snell <jasnell@gmail.com>2017-09-20 22:32:17 +0300
commit91e96d8f08d3a3d65679ad0cbcea86a94510ec4b (patch)
tree2c5b4eb018f41ff992e368e5e34b918f14c7c299 /tools
parent9049f09e0f53cb40d4cd03f2a4f95056a19ebae4 (diff)
lib,src: fix consistent spacing inside braces
PR-URL: #14162 Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Timothy Gu <timothygu99@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/doc/json.js4
-rw-r--r--tools/eslint-rules/prefer-assert-iferror.js2
2 files changed, 3 insertions, 3 deletions
diff --git a/tools/doc/json.js b/tools/doc/json.js
index aad860f840a..455b8252753 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 0da272d5f67..e1528741769 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) }
});
}
}