]> source.dussan.org Git - jquery.git/commitdiff
Build: Enable reportUnusedDisableDirectives in ESLint
authorEd S <ejsanders@gmail.com>
Mon, 20 Apr 2020 17:01:20 +0000 (18:01 +0100)
committerMichał Gołębiowski-Owczarek <m.goleb@gmail.com>
Mon, 20 Apr 2020 17:06:13 +0000 (19:06 +0200)
This forbids unnecessary `eslint-disable` comments.

Ref gh-4095
Closes gh-4520

(cherry picked from 46f9810b73a7ad446d7c3711faf92f56b67df3c1)

.eslintrc-browser.json
.eslintrc-node.json

index d580883b2d4a9e5d70cfa40465ba37e4b74055e0..d27ff6eaca5e4fcba83a3e2fc977044f7416e05f 100644 (file)
@@ -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.
index 544a92cdc8a9cd2c3a141e8c0167b48f8dad7d2a..df9cc24cfd1faad0cc7c8ed5046d1f60307922fe 100644 (file)
@@ -3,6 +3,8 @@
 
        "extends": "jquery",
 
+       "reportUnusedDisableDirectives": true,
+
        "parserOptions": {
                "ecmaVersion": 2017
        },