Skip to content

Commit b21d671

Browse files
edg2smgol
authored andcommitted
Build: Enable reportUnusedDisableDirectives in ESLint
This forbids unnecessary `eslint-disable` comments. Ref gh-4095 Closes gh-4520 (cherry picked from 46f9810)
1 parent 65e9098 commit b21d671

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.eslintrc-browser.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44
"extends": "jquery",
55

6+
"reportUnusedDisableDirectives": true,
7+
68
// Support: IE <=9 only, Android <=4.0 only
79
// The above browsers are failing a lot of tests in the ES5
810
// test suite at http://test262.ecmascript.org.

.eslintrc-node.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44
"extends": "jquery",
55

6+
"reportUnusedDisableDirectives": true,
7+
68
"parserOptions": {
79
"ecmaVersion": 2017
810
},

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy