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>
This commit is contained in:
cjihrig 2018-12-14 22:22:40 -05:00 committed by Rich Trott
parent 18f2bf7f9b
commit 707b0a8534
5 changed files with 6 additions and 15 deletions

View file

@ -142,8 +142,6 @@ function getMilestoneTimestamp(milestoneIdx) {
}
class PerformanceNodeTiming {
constructor() {}
get name() {
return 'node';
}