summaryrefslogtreecommitdiff
path: root/.eslintrc.js
diff options
context:
space:
mode:
authorcjihrig <cjihrig@gmail.com>2018-12-14 22:22:40 -0500
committerRich Trott <rtrott@gmail.com>2018-12-16 20:30:50 -0800
commit707b0a85344e16f38a6cded922df30361eaedd83 (patch)
tree84de938319f0d2dc407be220435102723d48fc10 /.eslintrc.js
parent18f2bf7f9bd183f7baf08a705035fc99580a2c40 (diff)
downloadandroid-node-v8-707b0a85344e16f38a6cded922df30361eaedd83.tar.gz
android-node-v8-707b0a85344e16f38a6cded922df30361eaedd83.tar.bz2
android-node-v8-707b0a85344e16f38a6cded922df30361eaedd83.zip
tools: enable no-useless-constructor lint rule
This commit enables ESLint's no-useless-constructor rule. Note that the documentation examples that only include constructor calls were left in tact. PR-URL: https://github.com/nodejs/node/pull/25055 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com> Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to '.eslintrc.js')
-rw-r--r--.eslintrc.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/.eslintrc.js b/.eslintrc.js
index 370dfaed68..36e0ce2196 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -235,6 +235,7 @@ module.exports = {
}],
'no-useless-call': 'error',
'no-useless-concat': 'error',
+ 'no-useless-constructor': 'error',
'no-useless-escape': 'error',
'no-useless-return': 'error',
'no-void': 'error',