Dashboard › cli › Biome noParameterProperties: never use …
019ef4b1-50f9-7612-8918-c3e086a9ffbf| Project | Hits | Last recalled |
|---|---|---|
| opencode-lore | 1 | 15h ago |
Trap: TypeScript parameter properties (constructor(private readonly handle: FileHandle)) look like idiomatic shorthand and compile fine. But Biome enforces noParameterProperties and will error. Fix: always declare explicit class fields and assign in constructor body. Applies to all new classes in src/lib/**/*.ts. Caught during FileOldReader/MemoryOldReader addition in bspatch.ts — 4 Biome errors at lines 281, 310, 311, 312.