mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RelatedArticles
synced 2024-11-24 00:05:50 +00:00
build: Upgrade eslint-config-wikimedia from 0.10.1 to 0.11.0
Change-Id: Ie1f3e5f9ead8f69da554fb9a3260fa44b1c91f4e
This commit is contained in:
parent
1fc22a3892
commit
2066d438ae
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -20,6 +20,9 @@ coverage
|
||||||
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
|
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
|
||||||
.grunt
|
.grunt
|
||||||
|
|
||||||
|
# ESlint intermediate storage
|
||||||
|
.eslintcache
|
||||||
|
|
||||||
# node-waf configuration
|
# node-waf configuration
|
||||||
.lock-wscript
|
.lock-wscript
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,10 @@ module.exports = function ( grunt ) {
|
||||||
|
|
||||||
grunt.initConfig( {
|
grunt.initConfig( {
|
||||||
eslint: {
|
eslint: {
|
||||||
|
options: {
|
||||||
|
reportUnusedDisableDirectives: true,
|
||||||
|
cache: true
|
||||||
|
},
|
||||||
all: [
|
all: [
|
||||||
'**/*.js',
|
'**/*.js',
|
||||||
'!node_modules/**',
|
'!node_modules/**',
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
"test": "grunt test"
|
"test": "grunt test"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"eslint-config-wikimedia": "0.10.1",
|
"eslint-config-wikimedia": "0.11.0",
|
||||||
"grunt": "1.0.3",
|
"grunt": "1.0.3",
|
||||||
"grunt-banana-checker": "0.7.0",
|
"grunt-banana-checker": "0.7.0",
|
||||||
"grunt-eslint": "21.0.0",
|
"grunt-eslint": "21.0.0",
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* eslint-disable jquery/no-global-selector */
|
/* eslint-disable no-jquery/no-global-selector */
|
||||||
( function () {
|
( function () {
|
||||||
|
|
||||||
var relatedPages = new mw.relatedPages.RelatedPagesGateway(
|
var relatedPages = new mw.relatedPages.RelatedPagesGateway(
|
||||||
|
|
|
@ -41,7 +41,7 @@
|
||||||
.append( $( '<h2></h2>' ).text( mw.msg( 'relatedarticles-read-more-heading' ) ) )
|
.append( $( '<h2></h2>' ).text( mw.msg( 'relatedarticles-read-more-heading' ) ) )
|
||||||
.append( cards.$el );
|
.append( cards.$el );
|
||||||
|
|
||||||
// eslint-disable-next-line jquery/no-global-selector
|
// eslint-disable-next-line no-jquery/no-global-selector
|
||||||
$( '.read-more-container' ).append( $readMore );
|
$( '.read-more-container' ).append( $readMore );
|
||||||
} );
|
} );
|
||||||
} );
|
} );
|
||||||
|
|
Loading…
Reference in a new issue