Changelog - 2026-10-18
dev-configs gains no-leaked-render, six more accessibility rules and a shared ignore list
EnhancementIn one line. A frontend project can delete its local copies of these lint rules and take them from @venizia/dev-configs.
What changed
NoLeakedRenderRule(venizia/no-leaked-render) is on inreactHouseConfigs.{count && <X />}draws0whencountis0; writecount ? <X /> : null.eslint --fixrewrites it.- Six more
jsx-a11yrules inReactOxlintConfigsandReactEslintConfigs, as errors:click-events-have-key-events,no-static-element-interactions,no-noninteractive-element-interactions,label-has-associated-control,heading-has-content,anchor-is-valid. ConstClassValuesRule(venizia/const-class-values): an exported type named*State,*Status,*Stage,*Mode,*Kindor*Typethat is a union of string literals should be a const class plusTConstValue. No preset turns it on, so switch it on yourself:[ConstClassValuesRule.NAME]: ConstClassValuesRule.build().ignoreon the oxlint presets, andLintIgnore.ReactOxlintConfigs.create({ ignore: ['src/gen/**'] })turns every rule off for those paths.LintIgnore.eslint({ patterns })is the matching ESLint entry, andLintIgnore.oxlint({ config, patterns })wraps a config you finished yourself.
typescript
// .configs/eslint.config.mjs
import { LintIgnore, reactHouseConfigs } from '@venizia/dev-configs/linters';
import { LINT_IGNORE } from './lint-ignore.mjs';
export default [LintIgnore.eslint({ patterns: LINT_IGNORE }), ...reactHouseConfigs];Who is affected
- A React project on
reactHouseConfigs.cond && <X />now fails lint, and an element with a click handler needs a keyboard handler or a realbutton. - A project that kept these rules in its own config. Delete the local copies. The shipped
no-new-erroralso catches a bareError('x')call. - Everyone else. Nothing new fails.
Details
consistent-type-importsand decorated parameters. oxlint 1.88 has no option to keep a decorated constructor parameter's class as a value import, so--fixstill writesimport { type X }. Code that readsdesign:paramtypesshould check that import by hand.