diff --git a/site/.oxlintrc.jsonc b/site/.oxlintrc.jsonc index 9a13f9c5016..d42bc11d2f2 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 758a3f55993..0cfb4e05c7a 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); });