biome-lint

Use when fixing Biome linter errors, TypeScript/tsgo type-check errors, or running lint/typecheck workflows

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "biome-lint" with this command: npx skills add wenerme/ai/wenerme-ai-biome-lint

Biome Lint & TypeScript Type-Check

Quick Reference

ErrorFix
noImplicitAnyLetAdd type: let x;let x: Type;
noUnusedVariablesPrefix _: const fooconst _foo
noUnusedFunctionParametersRename in destructure: { param }{ param: _param }
noEmptyPatternReplace {} with _opts: object
noUnreachableRemove dead code or wrap in block comment
noInvalidUseBeforeDeclarationMove declaration before usage or extract to const
TS2322Type assertion or filter: as Record<string, string>
TS2345Non-null assertion or default: value! or value ?? ''
TS7030Add explicit return: return undefined;
TS2339Type assertion to extend: as Type & { prop?: T }

Workflow

Biome Lint

# 1. Auto-fix
pnpm biome lint ./src --write

# 2. Check remaining errors
pnpm biome lint ./src

# 3. Fix import type issues
npx -y @biomejs/biome lint --only=style/useImportType ./src --write

TypeScript Check

# Single package
pnpm tsgo -p tsconfig.json --skipLibCheck --maxNodeModuleJsDepth 0 --noEmit

# All packages
pnpm -r exec just typecheck

Per-Package Rule Override

Create local biome.json to override rules:

{
  "root": false,
  "extends": "//",
  "linter": {
    "rules": {
      "correctness": { "useHookAtTopLevel": "warn" },
      "a11y": { "useButtonType": "warn" }
    }
  }
}

biome-ignore Comments

// biome-ignore lint/suspicious/noSelfCompare: NaN check
return x !== x;

// biome-ignore lint/correctness/noConstructorReturn: proxy pattern
return new Proxy();

Detailed Guides

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

glab-cli

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

chrome-devtools

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

argocd-cli-guide

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

orpc-implementation-sops

No summary provided by upstream source.

Repository SourceNeeds Review