mirror of
https://github.com/tauri-apps/tauri-plugin-log.git
synced 2026-01-31 00:35:18 +01:00
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 Committed via a GitHub action: https://github.com/tauri-apps/plugins-workspace/actions/runs/9348973824 Co-authored-by: FabianLars <FabianLars@users.noreply.github.com>
This commit is contained in:
2
dist-js/index.min.js
vendored
2
dist-js/index.min.js
vendored
@@ -327,7 +327,7 @@ async function attachLogger(fn) {
|
||||
// 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, "");
|
||||
fn({ message, level });
|
||||
});
|
||||
|
||||
@@ -158,7 +158,7 @@ async function attachLogger(fn) {
|
||||
// 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, "");
|
||||
fn({ message, level });
|
||||
});
|
||||
|
||||
@@ -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,
|
||||
"",
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user