tools: enable no-extra-parens in ESLint

Enable `no-extra-parens`. This rule restricts the use of parentheses to
only where they are necessary. It is set to be restricted to report only
function expressions.

PR-URL: https://github.com/nodejs/node/pull/5512
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Evan Lucas <evanlucas@me.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Rich Trott committed 2016-03-03 09:30:01 -08:00
1 parent 9091ccdc2d
commit 66ea32d6d1
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -640,7 +640,7 @@ checkAlignment(new Map(big_array.map(function(y) { return [y, null]; })));
}
{
const x = new (function() {});
const x = new function() {};
assert.equal(util.inspect(x), '{}');
}