Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix linter errors #39

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 19 additions & 19 deletions core-comment-top.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
/* _______________________________________________________________________________
* | |
* | === WARNING: GLOBAL GADGET FILE === |
* | Changes to this page affect many users. |
* | Please discuss changes on the talk page or on [[WT:Gadget]] before editing. |
* |_______________________________________________________________________________|
*
* Built from source code at GitHub repository [https://github.com/wikimedia-gadgets/xfdcloser]
* All changes should be made in the repository, otherwise they will be lost.
*
* To update this script from github, you must have a local repository set up. Then
* follow the instructions at [https://github.com/wikimedia-gadgets/xfdcloser/blob/master/README.md]
*
* XFDcloser: close deletion discussions at XfD venues, including actions to implement closes; see [[WP:XFDC]]
* Author: Evad37
* Licencing and attribution: [[WP:XFDC#Licencing and attribution]]
*/
/* jshint esversion: 5, esnext:false, laxbreak: true, undef: true, eqnull: true, maxerr: 3000 */
/* globals console, document, window, $, mw, OO */
/* _______________________________________________________________________________
* | |
* | === WARNING: GLOBAL GADGET FILE === |
* | Changes to this page affect many users. |
* | Please discuss changes on the talk page or on [[WT:Gadget]] before editing. |
* |_______________________________________________________________________________|
*
* Built from source code at GitHub repository [https://github.com/wikimedia-gadgets/xfdcloser]
* All changes should be made in the repository, otherwise they will be lost.
*
* To update this script from github, you must have a local repository set up. Then
* follow the instructions at [https://github.com/wikimedia-gadgets/xfdcloser/blob/master/README.md]
*
* XFDcloser: close deletion discussions at XfD venues, including actions to implement closes; see [[WP:XFDC]]
* Author: Evad37
* Licencing and attribution: [[WP:XFDC#Licencing and attribution]]
*/
/* jshint esversion: 5, esnext:false, laxbreak: true, undef: true, eqnull: true, maxerr: 3000 */
/* globals console, document, window, $, mw, OO */
/* <nowiki> */
4 changes: 2 additions & 2 deletions globals-src/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const OO = require("oojs");
OO.ui = {
HtmlSnippet: function(content) { this.content = content; },
MessageDialog: function(content) { this.content = content; }
}
};
global.window = window;

// Set up mock mw object (with just enough to get tests running without errors)
Expand All @@ -23,7 +23,7 @@ const mw = {
},
Api: () => {},
util: {
escapeRegExp: function(str){return str.replace(/([\\{}()|.?*+\-^$\[\]])/g,'\\$1');}
escapeRegExp: function(str){return str.replace(/([\\{}()|.?*+\-^$[\]])/g,"\\$1");}
}
};

Expand Down
Loading