Skip to content

Commit

Permalink
fix linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
NovemLinguae committed Mar 30, 2024
1 parent 2797872 commit c076d65
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
14 changes: 8 additions & 6 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,16 @@
"ecmaVersion": "latest"
},
"rules": {
"camelcase": 0,
"es-x/no-array-prototype-includes": 0,
"es-x/no-async-functions": 0,
"es-x/no-class-fields": 0,
"es-x/no-optional-catch-binding": 0,
"es-x/no-rest-spread-properties": 0,
"max-len": 0,
"es-x/no-async-functions": 0,
"es-x/no-array-prototype-includes": 0,
"no-jquery/variable-pattern": 0,
"no-shadow": 0,
"mediawiki/class-doc": 0,
"no-jquery/no-global-selector": 0,
"camelcase": 0,
"mediawiki/class-doc": 0
"no-jquery/variable-pattern": 0,
"no-shadow": 0
}
}
3 changes: 2 additions & 1 deletion UserHighlighterSimple.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,8 @@ class UserHighlighterSimple {

/**
* mw.Uri(url) expects a complete URL. If we get something like /wiki/User:Test, convert it to https://en.wikipedia.org/wiki/User:Test. Without this, UserHighlighterSimple doesn't work on metawiki.
* @param url
* @param {string} url
* @return {string} url
*/
addDomainIfMissing( url ) {
if ( url.startsWith( '/' ) ) {
Expand Down

0 comments on commit c076d65

Please sign in to comment.