AlexGalhardo

How To Avoid Breaking Inject With Biome — Development skill for Claude Code

Development community

How to avoid breaking @inject() when Biome reorganizes imports.

How to install How To Avoid Breaking Inject With Biome

Installs to ~/.claude/skills/alexgalhardo-adonisjs-v7-claudecode-todo-microsaas-how-to-avoid-breaking-inject-with-biome/SKILL.md

Terminal
mkdir -p ~/.claude/skills/alexgalhardo-adonisjs-v7-claudecode-todo-microsaas-how-to-avoid-breaking-inject-with-biome && curl -fsSL https://raw.githubusercontent.com/AlexGalhardo/adonisjs-v7-claudecode-todo-microsaaS/HEAD/.claude/skills/how-to-avoid-breaking-inject-with-biome.md -o ~/.claude/skills/alexgalhardo-adonisjs-v7-claudecode-todo-microsaas-how-to-avoid-breaking-inject-with-biome/SKILL.md

Restart Claude Code, or start a new session, for it to be picked up.

What How To Avoid Breaking Inject With Biome does

How to avoid breaking @inject() when Biome reorganizes imports

`biome check --write .` (and its `assist.organizeImports`/`lint/style/useImportType` rule) will happily rewrite a constructor-injected service's import into a type-only one:

// Before
import TodoService from '#services/todo_service'

// After Biome "helpfully" fixes it
import type TodoService from '#services/todo_service'

That looks harmless — `TodoService` is only ever used as a type annotation in the file — but it br

Alternatives in Development

Full documentation available on GitHub

View Source Repository