Skip to content
Permalink
Browse files
Build: Enable reportUnusedDisableDirectives in ESLint
This forbids unnecessary `eslint-disable` comments.

Ref gh-4095
Closes gh-4520

(cherry picked from 46f9810)
  • Loading branch information
edg2s authored and mgol committed Apr 20, 2020
1 parent 65e9098 commit b21d6710cf2d9e227396fe8d78b262dfeb8b3c28
Showing with 4 additions and 0 deletions.
  1. +2 −0 .eslintrc-browser.json
  2. +2 −0 .eslintrc-node.json
@@ -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.
@@ -3,6 +3,8 @@

"extends": "jquery",

"reportUnusedDisableDirectives": true,

"parserOptions": {
"ecmaVersion": 2017
},

0 comments on commit b21d671

Please sign in to comment.