eslint: Lint Gruntile.js using server rules

Change-Id: Ib0e7d62343689bb993476cb1ad40f93fc89a7190
This commit is contained in:
Ed Sanders 2022-02-07 16:25:32 +00:00
parent 963e636f83
commit 0faac32661
4 changed files with 19 additions and 13 deletions

View file

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

View file

@ -1,4 +1,5 @@
/* eslint-env node, es6 */ 'use strict';
module.exports = function ( grunt ) { module.exports = function ( grunt ) {
grunt.loadNpmTasks( 'grunt-banana-checker' ); grunt.loadNpmTasks( 'grunt-banana-checker' );
grunt.loadNpmTasks( 'grunt-eslint' ); grunt.loadNpmTasks( 'grunt-eslint' );

14
resources/.eslintrc.json Normal file
View file

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

View file

@ -1,7 +1,6 @@
{ {
"extends": [ "extends": [
"wikimedia/qunit", "wikimedia/qunit"
"../../../../../.eslintrc.json"
], ],
"rules": { "rules": {
"no-jquery/no-global-selector": "off" "no-jquery/no-global-selector": "off"