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.

来源信息

仓库
redpanda-data/ui-harness
最近来源活动
2026年5月8日 11:21
检测到的 SKILL.md 语言
英语
星标
34
分支
4

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

文件资源管理器
4 个文件

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
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
在 GitHub 查看