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)