@cjournois/biome-config-ts (2.1.1)
Installation
@cjournois:registry=npm config set @cjournois:registry=npm install @cjournois/biome-config-ts@2.1.1"@cjournois/biome-config-ts": "2.1.1"About this package
@cjournois/biome-config-ts
Shared Biome configuration for the TypeScript projects in this workspace. Biome formats, and lints the React and import checks that replaced ESLint plugins (one dependency instead of three). @cjournois/eslint-config-ts keeps the type-checked and core rules; the linter starts from preset: none, so the two never overlap.
Proprietary — Copyright (c) 2026 cjournois. All rights reserved. SPDX: UNLICENSED. See LICENSE for terms.
Install
bun add -d @cjournois/biome-config-ts @biomejs/biome
Needs Biome 2.6 or later: the markdown settings are unknown keys to 2.5, which then refuses the whole config.
Usage
Add a biome.json that extends this package:
{
"$schema": "https://biomejs.dev/schemas/2.6.4/schema.json",
"extends": ["@cjournois/biome-config-ts"]
}
Build, coverage, mutation and Playwright output (dist, coverage, reports, .stryker-tmp,
test-results, playwright-report) is skipped already, and Biome never reads node_modules. A unit's
own files.includes adds to that list rather than replacing it, so list only what is specific to the
unit:
"files": { "includes": ["!lib", "!drizzle"] }
lib is not skipped by default: a package that builds into it lists it, since other units keep source
there.
Run it (fold into the lint / lint-fix npm scripts, alongside ESLint):
{
"scripts": {
"lint": "biome check . && eslint .",
"lint-fix": "biome check --write . && eslint . --fix"
}
}
Settings
Format-only, mirroring the style previously enforced by @cjournois/eslint-config-ts so migrating repos do not reformat:
| Setting | Value |
|---|---|
indentStyle |
tab |
lineWidth |
120 |
lineEnding |
lf |
quoteStyle |
single |
semicolons |
always |
trailingCommas |
all |
| linter | preset: none plus the rules below |
| Markdown frontmatter | parsed as YAML, left as written |
| Skipped folders | generated output, see Usage |
Lint rules
Each replaces a rule from an ESLint plugin that was dropped to cut dependencies:
| Biome rule | Replaces |
|---|---|
security/noDangerouslySetInnerHtml |
@eslint-react/dom-no-dangerously-set-innerhtml |
a11y/useButtonType |
@eslint-react/dom-no-missing-button-type |
correctness/noVoidElementsWithChildren |
@eslint-react/dom-no-void-elements-with-children |
complexity/noUselessFragments |
@eslint-react/jsx-no-useless-fragment |
suspicious/noArrayIndexKey |
@eslint-react/no-array-index-key |
correctness/noNestedComponentDefinitions |
@eslint-react/no-nested-component-definitions |
organizeImports assist (on by default) |
import/no-duplicates |
react-refresh/only-export-components has no replacement: it only guards Vite hot reload, and Biome's version also flags type re-exports.
Silence one with // biome-ignore lint/<group>/<rule>: <reason>.
Source
Repository: git.journois.com/cjournois/library
Dependencies
Development dependencies
| ID | Version |
|---|---|
| @biomejs/biome | 2.6.6 |
| ajv | 8.20.0 |
Peer dependencies
| ID | Version |
|---|---|
| @biomejs/biome | ^2.6.0 |