From b21d6710cf2d9e227396fe8d78b262dfeb8b3c28 Mon Sep 17 00:00:00 2001 From: Ed S Date: Mon, 20 Apr 2020 18:01:20 +0100 Subject: [PATCH] Build: Enable reportUnusedDisableDirectives in ESLint This forbids unnecessary `eslint-disable` comments. Ref gh-4095 Closes gh-4520 (cherry picked from 46f9810b73a7ad446d7c3711faf92f56b67df3c1) --- .eslintrc-browser.json | 2 ++ .eslintrc-node.json | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.eslintrc-browser.json b/.eslintrc-browser.json index d580883b2..d27ff6eac 100644 --- a/.eslintrc-browser.json +++ b/.eslintrc-browser.json @@ -3,6 +3,8 @@ "extends": "jquery", + "reportUnusedDisableDirectives": true, + // Support: IE <=9 only, Android <=4.0 only // The above browsers are failing a lot of tests in the ES5 // test suite at http://test262.ecmascript.org. diff --git a/.eslintrc-node.json b/.eslintrc-node.json index 544a92cdc..df9cc24cf 100644 --- a/.eslintrc-node.json +++ b/.eslintrc-node.json @@ -3,6 +3,8 @@ "extends": "jquery", + "reportUnusedDisableDirectives": true, + "parserOptions": { "ecmaVersion": 2017 },