eslint: Lint Gruntile.js using server rules

Change-Id: I87efd77d71d8787300539813da04d8679dca764b
This commit is contained in:
Ed Sanders 2022-02-07 16:35:42 +00:00
parent 0c5b32c270
commit 73cbed9cd1
3 changed files with 16 additions and 9 deletions

View file

@ -1,11 +1,6 @@
{
"root": true,
"extends": [
"wikimedia/client-es5",
"wikimedia/jquery",
"wikimedia/mediawiki"
],
"rules": {
"max-len": "off"
}
"wikimedia/server"
]
}

View file

@ -1,6 +1,7 @@
/* eslint-env node, es6 */
'use strict';
module.exports = function ( grunt ) {
var conf = grunt.file.readJSON( 'extension.json' );
const conf = grunt.file.readJSON( 'extension.json' );
grunt.loadNpmTasks( 'grunt-banana-checker' );
grunt.loadNpmTasks( 'grunt-eslint' );

11
modules/.eslintrc.json Normal file
View file

@ -0,0 +1,11 @@
{
"root": true,
"extends": [
"wikimedia/client-es5",
"wikimedia/jquery",
"wikimedia/mediawiki"
],
"rules": {
"max-len": "off"
}
}