mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ConfirmEdit
synced 2024-11-23 15:56:50 +00:00
build: Upgrade eslint-config-wikimedia from 0.10.1 to 0.11.0
Change-Id: I1e6c500b8a79f8d01b3050dabdece36e77d17706
This commit is contained in:
parent
a600a37b4e
commit
9ef3132dce
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -6,3 +6,5 @@
|
||||||
node_modules/
|
node_modules/
|
||||||
vendor/
|
vendor/
|
||||||
composer.lock
|
composer.lock
|
||||||
|
.eslintcache
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* eslint-disable jquery/no-global-selector */
|
/* eslint-disable no-jquery/no-global-selector */
|
||||||
$( document ).on( 'click', '.fancycaptcha-reload', function () {
|
$( document ).on( 'click', '.fancycaptcha-reload', function () {
|
||||||
var $this = $( this ),
|
var $this = $( this ),
|
||||||
$root = $this.closest( '.fancycaptcha-captcha-container' ),
|
$root = $this.closest( '.fancycaptcha-captcha-container' ),
|
||||||
|
|
|
@ -8,7 +8,8 @@ module.exports = function ( grunt ) {
|
||||||
grunt.initConfig( {
|
grunt.initConfig( {
|
||||||
eslint: {
|
eslint: {
|
||||||
options: {
|
options: {
|
||||||
reportUnusedDisableDirectives: true
|
reportUnusedDisableDirectives: true,
|
||||||
|
cache: true
|
||||||
},
|
},
|
||||||
all: [
|
all: [
|
||||||
'**/*.js',
|
'**/*.js',
|
||||||
|
|
|
@ -39,7 +39,7 @@ mw.libs.ve.targetLoader.addPlugin( function () {
|
||||||
|
|
||||||
// Register extra fields
|
// Register extra fields
|
||||||
target.saveFields.wpCaptchaWord = function () {
|
target.saveFields.wpCaptchaWord = function () {
|
||||||
// eslint-disable-next-line jquery/no-global-selector
|
// eslint-disable-next-line no-jquery/no-global-selector
|
||||||
return $( '#g-recaptcha-response' ).val();
|
return $( '#g-recaptcha-response' ).val();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,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",
|
||||||
|
|
Loading…
Reference in a new issue