mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-27 17:00:37 +00:00
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:
parent
2d150f0aad
commit
2a854f7649
|
@ -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: {
|
||||
|
|
|
@ -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>'
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue