chore: Update eslint to v9 with flat config (#1412)

* chore: Update eslint to v9 with flat config

* disable eslint for that whole example file. v1 not worth it imo

* update ts-eslint

* lock versions

* ci: update pnpm
This commit is contained in:
Fabian-Lars
2024-06-03 13:02:49 +02:00
committed by GitHub
parent c26b5cb9fd
commit c52978d7ca
12 changed files with 1255 additions and 2031 deletions
+1 -1
View File
@@ -200,7 +200,7 @@ export async function attachLogger(fn: LoggerFn): Promise<UnlistenFn> {
// Strip ANSI escape codes
message = message.replace(
// TODO: Investigate security/detect-unsafe-regex
// eslint-disable-next-line no-control-regex, security/detect-unsafe-regex
// eslint-disable-next-line no-control-regex
/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g,
"",
);
+1 -1
View File
@@ -18,7 +18,7 @@ async function listenToEventIfNeeded(event: string): Promise<void> {
// We're not awaiting this Promise to prevent issues with Promise.all
// the listener will still be registered in time.
appWindow.listen<ProgressPayload>(event, ({ payload }) => {
void appWindow.listen<ProgressPayload>(event, ({ payload }) => {
const handler = handlers.get(payload.id);
if (handler != null) {
handler(payload.progress, payload.total);
@@ -1,3 +1,4 @@
/* eslint-disable */
import WebSocket from "tauri-plugin-websocket-api";
import "./style.css";