From: Ed S Date: Mon, 20 Apr 2020 17:01:20 +0000 (+0100) Subject: Build: Enable reportUnusedDisableDirectives in ESLint X-Git-Tag: 3.5.1~9 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b21d6710cf2d9e227396fe8d78b262dfeb8b3c28;p=jquery.git Build: Enable reportUnusedDisableDirectives in ESLint This forbids unnecessary `eslint-disable` comments. Ref gh-4095 Closes gh-4520 (cherry picked from 46f9810b73a7ad446d7c3711faf92f56b67df3c1) --- 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 },