Narrow linting rules and fix for eslintrc for js files

This commit is contained in:
hensm
2022-04-27 22:28:38 +01:00
parent 5e2d9a2fbc
commit dececa46c3
27 changed files with 298 additions and 246 deletions

View File

@@ -32,7 +32,6 @@ function connectNative(application: string): Port {
// Port proxy API
const portObject: Port = {
error: null as any,
name: "",
onDisconnect: {
@@ -150,7 +149,7 @@ function connectNative(application: string): Port {
}
});
port.onMessage.addListener((message: any) => {
port.onMessage.addListener((message: Message) => {
if (!isNativeHostStatusKnown) {
isNativeHostStatusKnown = true;
messageQueue = [];
@@ -177,8 +176,6 @@ async function sendNativeMessage(application: string, message: Message) {
);
}
const port = await options.get("bridgeBackupPort");
return await new Promise((resolve, reject) => {
const ws = new WebSocket(
`ws://${bridgeBackupHost}:${bridgeBackupPort}`