From 7f9d057c2d9f66ba024f102cc4f2118081f79004 Mon Sep 17 00:00:00 2001 From: Andrew Aquino Date: Fri, 11 Sep 2026 23:45:15 +0000 Subject: [PATCH] chore(site): enable no-irregular-whitespace oxlint rule --- site/.oxlintrc.jsonc | 2 +- site/src/utils/invisibleUnicode.test.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/site/.oxlintrc.jsonc b/site/.oxlintrc.jsonc index 9a13f9c501687..d42bc11d2f278 100644 --- a/site/.oxlintrc.jsonc +++ b/site/.oxlintrc.jsonc @@ -184,6 +184,7 @@ "no-export": "error", "new-for-builtins": "error", "no-explicit-any": "error", + "no-irregular-whitespace": "error", "no-use-before-define": [ "error", { "functions": false, "classes": false, "variables": false } @@ -205,7 +206,6 @@ "no-autofocus": "off", // a11y/noAutofocus (large) "no-invalid-void-type": "off", // suspicious/noConfusingVoidType (large) "no-redeclare": "off", // suspicious/noRedeclare (medium: TS declaration merging) - "no-irregular-whitespace": "off", // suspicious/noIrregularWhitespace (medium) "no-inferrable-types": "off", // style/noInferrableTypes (medium, coder error rule) "jsx-curly-brace-presence": "off", // style/useConsistentCurlyBraces (medium, coder error rule) "no-fallthrough": "off", // suspicious/noFallthroughSwitchClause (medium) diff --git a/site/src/utils/invisibleUnicode.test.ts b/site/src/utils/invisibleUnicode.test.ts index 758a3f55993ce..0cfb4e05c7ad8 100644 --- a/site/src/utils/invisibleUnicode.test.ts +++ b/site/src/utils/invisibleUnicode.test.ts @@ -36,6 +36,7 @@ describe("countInvisibleCharacters", () => { }); it("handles text with interleaved ZWS", () => { + // oxlint-disable-next-line eslint/no-irregular-whitespace // "h​e​l​l​o" — 4 ZWS between visible chars. expect(countInvisibleCharacters("h\u200be\u200bl\u200bl\u200bo")).toBe(4); });