镜像自地址
https://github.com/wikimedia/mediawiki-extensions-MassMessage
已同步 2024-05-27 13:42:33 +08:00
build: Update linters
Change-Id: Ia0b9295bd1d34b4ca595271a9b0388afbd34c540
这个提交包含在:
父节点
37c8230eca
当前提交
e3731f3c5a
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"extends": "stylelint-config-wikimedia",
|
||||
"rules": {
|
||||
"selector-no-id": null
|
||||
"selector-max-id": null
|
||||
}
|
||||
}
|
||||
|
|
|
@ -29,8 +29,7 @@
|
|||
action: 'query',
|
||||
list: 'mmsites',
|
||||
term: request.term
|
||||
} )
|
||||
.done( function ( data ) {
|
||||
} ).done( function ( data ) {
|
||||
response( data.query.mmsites );
|
||||
} );
|
||||
}
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
|
||||
// Ignore tags that have '/' outside of the first character
|
||||
// (assume those are self closing).
|
||||
matches = code.match( /<[\w\/][^\/]*?>/g );
|
||||
matches = code.match( /<[\w/][^/]*?>/g );
|
||||
if ( !matches ) {
|
||||
$warnings.hide();
|
||||
return;
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
title: title
|
||||
};
|
||||
if ( missing ) {
|
||||
targetAttribs[ 'class' ] = 'new';
|
||||
targetAttribs.class = 'new';
|
||||
}
|
||||
targetLink = mw.html.element( 'a', targetAttribs, title );
|
||||
} else {
|
||||
|
@ -91,8 +91,7 @@
|
|||
action: 'editmassmessagelist',
|
||||
spamlist: mw.config.get( 'wgPageName' ),
|
||||
remove: param
|
||||
} )
|
||||
.done( function () {
|
||||
} ).done( function () {
|
||||
$link.closest( 'li' ).fadeOut( 400, function () { // 400 is the default duration.
|
||||
var $list = $link.closest( 'ul' );
|
||||
|
||||
|
@ -105,8 +104,7 @@
|
|||
);
|
||||
}
|
||||
} );
|
||||
} )
|
||||
.fail( function ( errorCode ) {
|
||||
} ).fail( function ( errorCode ) {
|
||||
// eslint-disable-next-line no-alert
|
||||
alert( mw.message( 'massmessage-content-removeerror', errorCode ).text() );
|
||||
} );
|
||||
|
@ -163,8 +161,7 @@
|
|||
action: 'editmassmessagelist',
|
||||
spamlist: mw.config.get( 'wgPageName' ),
|
||||
add: getApiParam( title, site )
|
||||
} )
|
||||
.done( function ( data ) {
|
||||
} ).done( function ( data ) {
|
||||
apiResult = data.editmassmessagelist;
|
||||
|
||||
if ( apiResult.result === 'Success' ) {
|
||||
|
@ -191,8 +188,7 @@
|
|||
showAddError( 'massmessage-content-invalidsite' );
|
||||
}
|
||||
}
|
||||
} )
|
||||
.fail( function ( errorCode ) {
|
||||
} ).fail( function ( errorCode ) {
|
||||
showAddError( 'massmessage-content-adderror', errorCode );
|
||||
} );
|
||||
} );
|
||||
|
|
10
package.json
10
package.json
|
@ -4,13 +4,13 @@
|
|||
"test": "grunt test"
|
||||
},
|
||||
"devDependencies": {
|
||||
"eslint-config-wikimedia": "0.4.0",
|
||||
"eslint-config-wikimedia": "0.5.0",
|
||||
"grunt": "1.0.1",
|
||||
"grunt-banana-checker": "0.6.0",
|
||||
"grunt-eslint": "19.0.0",
|
||||
"grunt-eslint": "20.1.0",
|
||||
"grunt-jsonlint": "1.1.0",
|
||||
"grunt-stylelint": "0.7.0",
|
||||
"stylelint": "7.8.0",
|
||||
"stylelint-config-wikimedia": "0.4.1"
|
||||
"grunt-stylelint": "0.9.0",
|
||||
"stylelint": "8.2.0",
|
||||
"stylelint-config-wikimedia": "0.4.2"
|
||||
}
|
||||
}
|
||||
|
|
正在加载...
在新工单中引用
屏蔽一个用户