diff options
author | Ed S <ejsanders@gmail.com> | 2020-04-20 18:01:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-20 19:01:20 +0200 |
commit | 46f9810b73a7ad446d7c3711faf92f56b67df3c1 (patch) | |
tree | 0f6fb9923b2478b60206dcded10277f818d6f416 | |
parent | 73415da25d964ee31ec1804d55f5af0199a1378e (diff) | |
download | jquery-46f9810b73a7ad446d7c3711faf92f56b67df3c1.tar.gz jquery-46f9810b73a7ad446d7c3711faf92f56b67df3c1.zip |
Build: Enable reportUnusedDisableDirectives in ESLint
This forbids unnecessary `eslint-disable` comments.
Ref gh-4095
Closes gh-4520
-rw-r--r-- | .eslintrc-browser.json | 2 | ||||
-rw-r--r-- | .eslintrc-node.json | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/.eslintrc-browser.json b/.eslintrc-browser.json index 372763227..97b5abe85 100644 --- a/.eslintrc-browser.json +++ b/.eslintrc-browser.json @@ -3,6 +3,8 @@ "extends": "jquery", + "reportUnusedDisableDirectives": true, + "parserOptions": { "ecmaVersion": 5 }, diff --git a/.eslintrc-node.json b/.eslintrc-node.json index f1c44a382..8cb69807b 100644 --- a/.eslintrc-node.json +++ b/.eslintrc-node.json @@ -3,6 +3,8 @@ "extends": "jquery", + "reportUnusedDisableDirectives": true, + "parserOptions": { "ecmaVersion": 2018 }, |