mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-23 22:45:20 +00:00
Move eslint client config to modules, fix warnings
Change-Id: I86857b82fa7d5c47c0056da4ad270fcb2a4d965f
This commit is contained in:
parent
cf95dbd4be
commit
0d4bb626f1
|
@ -1,11 +1,6 @@
|
|||
{
|
||||
"root": true,
|
||||
"extends": [
|
||||
"wikimedia/client-es5",
|
||||
"wikimedia/jquery",
|
||||
"wikimedia/mediawiki"
|
||||
],
|
||||
"rules": {
|
||||
"max-len": "off"
|
||||
}
|
||||
"wikimedia/server"
|
||||
]
|
||||
}
|
||||
|
|
|
@ -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
11
modules/.eslintrc.json
Normal file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"root": true,
|
||||
"extends": [
|
||||
"wikimedia/client-es5",
|
||||
"wikimedia/jquery",
|
||||
"wikimedia/mediawiki"
|
||||
],
|
||||
"rules": {
|
||||
"max-len": "off"
|
||||
}
|
||||
}
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue