mirror of
https://github.com/zulip/zulip-desktop.git
synced 2025-11-11 01:16:09 +00:00
xo: Upgrade xo to 0.28.
Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
@@ -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
853
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -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
1
typings.d.ts
vendored
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user