Hygiene: forbid unused lint directives

Prevent outdated ESLint error waivers from littering the code by
enabling `--report-unused-disable-directives`.

Change-Id: I3b9c39131f030cf2c4113ecd947c3f4a8679bdfe
This commit is contained in:
Stephen Niedzielski 2018-06-27 17:55:06 -05:00
parent 2d150f0aad
commit 2a854f7649
2 changed files with 2 additions and 2 deletions

View file

@ -13,7 +13,8 @@ module.exports = function ( grunt ) {
banana: conf.MessagesDirs,
eslint: {
options: {
maxWarnings: 0
maxWarnings: 0,
reportUnusedDisableDirectives: true
},
// Lint the built artifacts with ES5 so that no ES6 slips to production
build: {

View file

@ -265,7 +265,6 @@ QUnit.test( 'createThumbnailElement', ( assert ) => {
{
className: 'mwe-popups-is-not-tall',
expectedPoints: '0 299 500 299',
// eslint-disable-next-line max-len
expectedHTML: '<image href="https://thumbnail.url" class="mwe-popups-is-not-tall" x="25" y="50" width="200" height="250"></image>'
},
{