From 47c7e33ec2eb4ddd13a90abb1271f9f044ae0a35 Mon Sep 17 00:00:00 2001 From: William Chargin Date: Mon, 28 May 2018 15:01:28 -0700 Subject: [PATCH] Disable the `no-useless-constructor` lint rule (#308) Summary: In fact, a constructor that only calls `super` is useful: it specifies the API for constructing an object of a given class without needing to traverse its prototype chain. (That constructors are inherited at all is arguably a design flaw.) Test Plan: None. wchargin-branch: yes-useful-constructor --- .eslintrc.js | 1 + 1 file changed, 1 insertion(+) diff --git a/.eslintrc.js b/.eslintrc.js index 6286658..5f857fd 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -11,5 +11,6 @@ module.exports = { }, ], "no-use-before-define": ["off"], + "no-useless-constructor": ["off"], }, };