xo: Upgrade xo to 0.28.

Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
Anders Kaseorg
2020-03-23 16:52:04 -07:00
parent 611932c66d
commit 55eb768064
5 changed files with 779 additions and 84 deletions

View File

@@ -461,7 +461,7 @@ class ServerManagerView {
$altIcon.classList.add('server-icon'); $altIcon.classList.add('server-icon');
$altIcon.classList.add('alt-icon'); $altIcon.classList.add('alt-icon');
$parent.removeChild($img); $img.remove();
$parent.append($altIcon); $parent.append($altIcon);
this.addContextMenu($altIcon as HTMLImageElement, index); this.addContextMenu($altIcon as HTMLImageElement, index);

View File

@@ -1,3 +1,5 @@
/* eslint-disable unicorn/prevent-abbreviations */
// This util function returns the page params if they're present else returns null // This util function returns the page params if they're present else returns null
export function isPageParams(): null | object { export function isPageParams(): null | object {
let webpageParams = null; let webpageParams = null;

853
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -208,7 +208,7 @@
"tap-colorize": "^1.2.0", "tap-colorize": "^1.2.0",
"tape": "^5.0.0-next.5", "tape": "^5.0.0-next.5",
"typescript": "^3.8.3", "typescript": "^3.8.3",
"xo": "^0.27.2" "xo": "^0.28.0"
}, },
"xo": { "xo": {
"rules": { "rules": {
@@ -234,7 +234,8 @@
"object-curly-spacing": "off", "object-curly-spacing": "off",
"padding-line-between-statements": "off", "padding-line-between-statements": "off",
"strict": "error", "strict": "error",
"unicorn/catch-error-name": "off" "unicorn/catch-error-name": "off",
"unicorn/string-content": "off"
}, },
"envs": [ "envs": [
"node", "node",

1
typings.d.ts vendored
View File

@@ -8,6 +8,7 @@ interface PageParamsObject {
default_language: string; default_language: string;
external_authentication_methods: any; external_authentication_methods: any;
} }
// eslint-disable-next-line unicorn/prevent-abbreviations
declare let page_params: PageParamsObject; declare let page_params: PageParamsObject;
// This is mostly zulip side of code we access from window // This is mostly zulip side of code we access from window