From 9ad85da4cf3e02b810d9cc29b7ace01664ff0797 Mon Sep 17 00:00:00 2001 From: yubiuser Date: Tue, 24 Jun 2025 20:32:39 +0200 Subject: [PATCH] Disable eslint prettier/prettier rule for the block too keep it readable Signed-off-by: yubiuser --- scripts/js/gravity.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/js/gravity.js b/scripts/js/gravity.js index f116bb91..46a87329 100644 --- a/scripts/js/gravity.js +++ b/scripts/js/gravity.js @@ -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 ''; }); //COL_BOLD line = line.replaceAll("", () => { spanCount++; return ''; }); //COL_GRAY line = line.replaceAll("", () => { spanCount++; return ''; }); //COL_RED @@ -97,6 +98,7 @@ function parseLines(ta, str) { line = line.replaceAll("", () => { spanCount++; return ''; }); //COL_BLUE line = line.replaceAll("", () => { spanCount++; return ''; }); //COL_PURPLE line = line.replaceAll("", () => { spanCount++; return ''; }); //COL_CYAN + /* eslint-enable prettier/prettier */ // Replace [0m with the appropriate number of closing spans line = line.replaceAll("", "".repeat(spanCount)); //COL_NC