Skip to content

Commit da9e446

Browse files
committed
fix linter errors
1 parent f713a64 commit da9e446

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

BlockedUserHistory.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class BlockedUserHistory {
5151
* @copyright nickf, CC BY-SA 2.5, https://stackoverflow.com/a/1586333/3480193
5252
*/
5353
getUriParameter( uriParameter ) {
54-
const parts = this.window.location.search.substr( 1 ).split( '&' );
54+
const parts = this.window.location.search.slice( 1 ).split( '&' );
5555
const $_GET = {};
5656
for ( let i = 0; i < parts.length; i++ ) {
5757
const temp = parts[ i ].split( '=' );

CiteHighlighter/RSP to json tool for ElijahPepe/script.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ class Tool {
1919
buffer.domains = domains === null ? [] : domains[ 1 ].split( '|' );
2020

2121
// TODO:
22-
const reliability = '';
22+
// const reliability = '';
2323

2424
// TODO:
25-
const blacklisted = '';
25+
// const blacklisted = '';
2626

2727
// TODO:
28-
const summary = '';
28+
// const summary = '';
2929

3030
output.push( buffer );
3131
}

DetectG4G5.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class DetectG4G5 {
5555

5656
async hasAFDTemplate( title ) {
5757
const wikicode = await this.getWikicode( title );
58-
return wikicode.indexOf( '{{Article for deletion' ) !== -1;
58+
return wikicode.includes( '{{Article for deletion' );
5959
}
6060

6161
displayWarning( html ) {

VoteCounter/VoteCounter.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
99
*/
1010

11-
$( async function () {
12-
await mw.loader.using( [ 'mediawiki.api' ], async function () {
11+
$( async () => {
12+
await mw.loader.using( [ 'mediawiki.api' ], async () => {
1313
await ( new VoteCounterController() ).execute();
1414
} );
1515
} );

0 commit comments

Comments
 (0)