aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEd S <ejsanders@gmail.com>2020-04-20 18:01:20 +0100
committerGitHub <noreply@github.com>2020-04-20 19:01:20 +0200
commit46f9810b73a7ad446d7c3711faf92f56b67df3c1 (patch)
tree0f6fb9923b2478b60206dcded10277f818d6f416
parent73415da25d964ee31ec1804d55f5af0199a1378e (diff)
downloadjquery-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.json2
-rw-r--r--.eslintrc-node.json2
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
},