Move eslint client config to modules, fix warnings

Change-Id: I86857b82fa7d5c47c0056da4ad270fcb2a4d965f
This commit is contained in:
Ed Sanders 2021-11-03 12:33:54 +00:00
parent cf95dbd4be
commit 0d4bb626f1
8 changed files with 20 additions and 14 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

@ -4,10 +4,10 @@
* @package Cite
*/
/* 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"
}
}

View file

@ -10,7 +10,7 @@
*
* @class
* @extends ve.ce.LeafNode
* @mixins ve.ce.FocusableNode
* @mixin ve.ce.FocusableNode
*
* @constructor
* @param {ve.dm.MWReferenceNode} model Model to observe

View file

@ -10,7 +10,7 @@
*
* @class
* @extends ve.ce.LeafNode
* @mixins ve.ce.FocusableNode
* @mixin ve.ce.FocusableNode
*
* @constructor
* @param {ve.dm.MWReferencesListNode} model Model to observe

View file

@ -9,7 +9,7 @@
* MediaWiki reference model.
*
* @class
* @mixins OO.EventEmitter
* @mixin OO.EventEmitter
*
* @constructor
* @param {ve.dm.Document} parentDoc Document that contains or will contain the reference

View file

@ -10,7 +10,7 @@
*
* @class
* @extends ve.dm.LeafNode
* @mixins ve.dm.FocusableNode
* @mixin ve.dm.FocusableNode
*
* @constructor
* @param {Object} [element] Reference to element in linear model

View file

@ -10,7 +10,7 @@
*
* @class
* @extends ve.dm.BranchNode
* @mixins ve.dm.FocusableNode
* @mixin ve.dm.FocusableNode
*
* @constructor
* @param {Object} [element] Reference to element in linear model