mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-17 11:42:29 +03:00
Lint
This commit is contained in:
parent
554bb03c4b
commit
d60d970cae
|
@ -41,6 +41,7 @@ export default async function (argv: { [arg: string]: any }): Promise<{
|
||||||
const agServer = socketClusterServer.attach(httpServer, options);
|
const agServer = socketClusterServer.attach(httpServer, options);
|
||||||
|
|
||||||
const app = express();
|
const app = express();
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
||||||
httpServer.on('request', app);
|
httpServer.on('request', app);
|
||||||
const store = createStore(options);
|
const store = createStore(options);
|
||||||
app.use(routes(options, store, agServer));
|
app.use(routes(options, store, agServer));
|
||||||
|
@ -76,7 +77,7 @@ export default async function (argv: { [arg: string]: any }): Promise<{
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
.catch(function (error) {
|
.catch(function (error) {
|
||||||
console.error(error); // eslint-disable-line no-console
|
console.error(error);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -110,7 +111,7 @@ export default async function (argv: { [arg: string]: any }): Promise<{
|
||||||
request.end(data);
|
request.end(data);
|
||||||
})
|
})
|
||||||
.catch(function (error) {
|
.catch(function (error) {
|
||||||
console.error(error); // eslint-disable-line no-console
|
console.error(error);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
})();
|
})();
|
||||||
|
@ -118,7 +119,6 @@ export default async function (argv: { [arg: string]: any }): Promise<{
|
||||||
for await (const data of socket.listener('disconnect')) {
|
for await (const data of socket.listener('disconnect')) {
|
||||||
const channel = agServer.exchange.channel('sc-' + socket.id);
|
const channel = agServer.exchange.channel('sc-' + socket.id);
|
||||||
channel.unsubscribe();
|
channel.unsubscribe();
|
||||||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
||||||
void agServer.exchange.transmitPublish(channelToEmit!, {
|
void agServer.exchange.transmitPublish(channelToEmit!, {
|
||||||
id: socket.id,
|
id: socket.id,
|
||||||
type: 'DISCONNECTED',
|
type: 'DISCONNECTED',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user