Skip to main content

setup-biome

Install Biome linter with Ultracite preset, create biome.jsonc config, and configure Claude Code Stop hook for auto-fix before finishing. Use when setting up linting, formatting, Biome, Ultracite, or code quality enforcement.

Informations de source

Dépôt
redpanda-data/ui-harness
Dernière activité de la source
8 mai 2026 à 11:21
Langue détectée de SKILL.md
anglais
Étoiles
34
Forks
4

Options d'installation

Le prompt qui vérifie d'abord la source est sélectionné par défaut. Vous pouvez passer à une commande directe ou télécharger une copie locale.

Vérifiez les fichiers source

Lisez SKILL.md et les fichiers associés affichés par SkillsMP avant de décider de l'installer.

Explorateur de fichiers
4 fichiers

Affichage de SKILL.md

SKILL.md
Instructions source · Aperçu en lecture seule
name
setup-biome
description
Install Biome linter with Ultracite preset, create biome.jsonc config, and configure Claude Code Stop hook for auto-fix before finishing. Use when setting up linting, formatting, Biome, Ultracite, or code quality enforcement.
# Setup Biome + Ultracite - **Biome** linter/formatter + **Ultracite** opinionated preset - Stop hook auto-fix lint/format on changed JS/TS files (skip `noUnusedImports`, avoid deletion loops) - Strict: `noConsole`, cognitive complexity 15, `noDeprecatedImports`, restricted imports (moment/lodash/classnames/mobx/yup) ## Steps ### 1. Install ```bash bun add -D @biomejs/biome ultracite --yarn ``` ### 2. Create `biome.jsonc` From [REFERENCE.md](REFERENCE.md). Extend `ultracite/biome/core` + `ultracite/biome/react`. VCS git on. Test files re-enable `noExplicitAny`. ### 3. Package.json scripts ```json { "scripts": { "lint": "biome check .", "lint:fix": "biome check --write .", "lint:file": "biome check", "lint:fix:file": "biome check --write" } } ``` ### 4. Hook Copy `scripts/biome-autofix.sh` -> `.claude/hooks/`. `chmod +x`. Add to Stop. ### 5. Verify - [ ] `bun run lint` + `bun run lint:fix` work - [ ] Hook executable + configured
Voir sur GitHub