build: Update linters

Change-Id: Ia0b9295bd1d34b4ca595271a9b0388afbd34c540
这个提交包含在:
Ed Sanders 2018-02-04 22:08:24 +00:00
父节点 37c8230eca
当前提交 e3731f3c5a
共有 5 个文件被更改,包括 13 次插入18 次删除

查看文件

@ -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 );
} );
} );

查看文件

@ -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"
}
}