Disable eslint prettier/prettier rule for the block too keep it readable

Signed-off-by: yubiuser <github@yubiuser.dev>
This commit is contained in:
yubiuser
2025-06-24 20:32:39 +02:00
parent 785494e60b
commit 9ad85da4cf

View File

@@ -89,6 +89,7 @@ function parseLines(ta, str) {
let spanCount = 0;
// Replace ANSI escape codes with HTML tags and count opening spans
/* eslint-disable prettier/prettier */
line = line.replaceAll("", () => { spanCount++; return '<span class="text-bold">'; }); //COL_BOLD
line = line.replaceAll("", () => { spanCount++; return '<span class="log-gray">'; }); //COL_GRAY
line = line.replaceAll("", () => { spanCount++; return '<span class="log-red">'; }); //COL_RED
@@ -97,6 +98,7 @@ function parseLines(ta, str) {
line = line.replaceAll("", () => { spanCount++; return '<span class="log-blue">'; }); //COL_BLUE
line = line.replaceAll("", () => { spanCount++; return '<span class="log-purple">'; }); //COL_PURPLE
line = line.replaceAll("", () => { spanCount++; return '<span class="log-cyan">'; }); //COL_CYAN
/* eslint-enable prettier/prettier */
// Replace [0m with the appropriate number of closing spans
line = line.replaceAll("", "</span>".repeat(spanCount)); //COL_NC