build: Update linters

Change-Id: I7cdedec41a9960f8dce2bac3251d3d24e7999024
This commit is contained in:
Ed Sanders 2019-11-15 16:46:40 +00:00
parent c21ef1461d
commit 29f8ba1162
5 changed files with 563 additions and 517 deletions

View file

@ -2,9 +2,7 @@
"root": true,
"extends": [
"wikimedia/client",
"wikimedia/jquery"
],
"globals": {
"mw": false
}
"wikimedia/jquery",
"wikimedia/mediawiki"
]
}

View file

@ -7,12 +7,11 @@ module.exports = function ( grunt ) {
grunt.initConfig( {
eslint: {
options: {
reportUnusedDisableDirectives: true,
extensions: [ '.js', '.json' ],
cache: true
},
all: [
'**/*.js{,on}',
'**/*.{js,json}',
'!{vendor,node_modules}/**'
]
},

1057
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -4,11 +4,11 @@
"test": "grunt test"
},
"devDependencies": {
"eslint-config-wikimedia": "0.12.0",
"eslint-config-wikimedia": "0.15.0",
"grunt": "1.0.4",
"grunt-banana-checker": "0.7.0",
"grunt-eslint": "21.0.0",
"grunt-stylelint": "0.11.1",
"stylelint-config-wikimedia": "0.6.0"
"grunt-banana-checker": "0.8.1",
"grunt-eslint": "22.0.0",
"grunt-stylelint": "0.12.0",
"stylelint-config-wikimedia": "0.7.0"
}
}

View file

@ -99,6 +99,8 @@ mw.libs.ve.targetLoader.addPlugin( function () {
setTimeout( onCaptchaLoad );
break;
}
// Messages documented above
// eslint-disable-next-line mediawiki/msg-doc
$captchaParagraph.append( mw.message( msg ).parseDom(), '<br>', question );
}
}