diff --git a/.eslintrc b/.eslintrc index f2a61ab4134395..fc4eadb9b2cb19 100644 --- a/.eslintrc +++ b/.eslintrc @@ -14,6 +14,7 @@ rules: no-empty-character-class: 2 no-ex-assign: 2 no-extra-boolean-cast : 2 + no-extra-parens: [2, "functions"] no-extra-semi: 2 no-func-assign: 2 no-invalid-regexp: 2 diff --git a/test/parallel/test-util-inspect.js b/test/parallel/test-util-inspect.js index 106ebf5cf06eae..618a856e195a32 100644 --- a/test/parallel/test-util-inspect.js +++ b/test/parallel/test-util-inspect.js @@ -505,7 +505,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), '{}'); }