From fbd9190488d71e4b38c17ce9c879d37047c74e7d Mon Sep 17 00:00:00 2001 From: Danny Kopping Date: Fri, 15 May 2026 17:57:29 +0200 Subject: [PATCH] chore: disable noEmptyInterface biome rule (#25398) *Disclaimer: implemented by a Coder Agent using Claude Opus 4.6* The `noEmptyInterface` rule is enabled by default as a recommended Biome rule. Its safe fix converts empty interfaces to type aliases (e.g. `export interface X {}` becomes `export type X = {}`), which then conflicts with `noBannedTypes` on the empty `{}` type. Since empty interfaces are legitimately produced by Go-to-TypeScript code generation, this disables the rule entirely.
Context Discussion in Slack concluded that disabling the rule is preferable to adding per-type exceptions in `scripts/apitypings/main.go`, since the safe fix itself creates a worse lint violation.
--- biome.jsonc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/biome.jsonc b/biome.jsonc index a0aa490c6b..96d014b40d 100644 --- a/biome.jsonc +++ b/biome.jsonc @@ -146,5 +146,19 @@ "tailwindDirectives": true } }, + "overrides": [ + { + // Generated Go types can produce empty interfaces; the + // safe fix conflicts with noBannedTypes. + "includes": ["**/typesGenerated.ts"], + "linter": { + "rules": { + "suspicious": { + "noEmptyInterface": "off" + } + } + } + } + ], "$schema": "./node_modules/@biomejs/biome/configuration_schema.json" }