Przejdź do treści
Biblioteka skilli
Programowanie · Budowanie i kod

ts-lint-format

/ts-lint-format

Pomaga wybrać i skonfigurować linter i formater TS: Biome 2.x kontra ESLint 10 z flat config i typescript-eslint.

Repozytorium
agents ↗
Licencja
MIT
Ostatnia zmiana repozytorium
12.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
6
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 12.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Pomaga wybrać i skonfigurować linter i formater TS: Biome 2.x kontra ESLint 10 z flat config i typescript-eslint.

Oryginalny opis (EN)

Use when choosing or configuring a TS linter/formatter — Biome 2.x vs ESLint 10 flat config + typescript-eslint typed linting. Not for type checking itself (ts-config).

Jak działa

  1. Agent Workflow (MANDATORY)
  2. Use when
  3. Do NOT use for
  4. Critical Rules
  5. Architecture
  6. Reference Guide
  7. Best Practices
Sekcje z nagłówków SKILL.md, w oryginale · 91 linii, 602 słów
Podgląd SKILL.md
---
name: ts-lint-format
description: Use when choosing or configuring a TS linter/formatter — Biome 2.x vs ESLint 10 flat config + typescript-eslint typed linting. Not for type checking itself (ts-config).
versions:
  biome: "2.x"
  eslint: "10 (flat config only)"
  typescript-eslint: "8.x"
  typescript: "5.8+ (latest stable 7.0; typescript-eslint needs the 6.0 API)"
references: references/tool-choice.md, references/biome-setup.md, references/eslint-typed.md, references/templates/config-examples.md
related-skills: ts-runtime-node, ts-runtime-bun, solid-generic
---

<objective>
This skill covers choosing and configuring a TypeScript linting/formatting stack: Biome 2.x
as a single binary that formats and lints (biome.json, domains, type-aware rules covering
~75% of typed-linting needs) versus ESLint 10 flat config (eslint.config.mjs) with
typescript-eslint for full typed linting including cross-file narrowing and no-unsafe-*
rules.

It covers the 2026 arbitrage between the two — new projects default to Biome for a fast
zero-config start, established/typed-heavy codebases lean ESLint + typescript-eslint — plus
a note on Oxlint as a challenger, and the rule to never run Biome and Prettier on the same
files.

Out of scope: type checking itself (tsc --noEmit, tsconfig flags) belongs to ts-config;
test-runner configuration belongs to ts-testing.
</objective>

# TypeScript Linting & Formatting

## Agent Workflow (MANDATORY)

Before ANY implementation, spawn 3 agents in parallel, one `Agent` call each with a `name`:

1. **fuse-ai-pilot:explore-codebase** - Detect existing lint/format config, project age, framework
2. **fuse-ai-pilot:research-expert** - Verify latest Biome 2.x + typescript-eslint via Context7/Exa
3. **mcp__context7__query-docs** - Check Biome and typescript-eslint docs

After implementation, run **fuse-ai-pilot:sniper** for validation.

## Use when

- Choosing a linter/formatter stack for a TS project (new vs established codebase)
- Configuring **Biome 2.x** (`biome.json`, `biome check`, domains, type-aware rules)
- Configuring **ESLint 10 flat config** + **typescript-eslint** typed linting
- Migrating from ESLint+Prettier, or adding a CI lint gate

## Do NOT use for

- Runtime execution → use [ts-runtime-node](../ts-runtime-node/SKILL.md) / [ts-runtime-bun](../ts-runtime-bun/SKILL.md)
- Framework-specific style rules owned by that framework's own config
- Type checking itself — linters complement, never replace, `tsc --noEmit`

## Critical Rules

1. **Pick ONE formatter** - Biome formats AND lints in one binary; do not also run Prettier on the same files.
2. **Type-aware linting needs the type checker** - `typescript-eslint` typed rules and Biome's type-aware rules both cost a build pass; expect them to be slower than syntactic rules.
3. **Biome does NOT format-lint** - It never reports formatting via lint rules; the formatter owns all formatting decisions.
4. **ESLint 10 = flat config only** - Use `eslint.config.mjs` with `typescript-eslint`'s `tseslint.configs.*`; `.eslintrc.*` / `.eslintignore` support was removed in v10 (ESLint 9 is EOL since 2026-08-06). typescript-eslint 8.x peers on `typescript <6.1.0` — on a TS 7.0 project, alias `typescript` to `@typescript/typescript6` for the linter (see eslint-typed.md).
5. **Coverage gap is real** - Biome's type-aware rules cover ~75% of typed-linting needs; full cross-file narrowing and `no-unsafe-*` still require typescript-eslint.

## Architecture

```
project/
├── biome.json            # Biome path: one binary, format + lint
│   OR
├── eslint.config.mjs     # ESLint path: flat config + typescript-eslint
├── .prettierrc           #   (only on ESLint path; Biome replaces Prettier)
└── tsconfig.json         # required for typed linting (both tools)
```

→ See [config-examples.md](references/templates/config-examples.md) for both stacks

## Reference Guide

### Concepts

| Topic | Reference | When to Consult |
|-------|-----------|-----------------|
| **Tool choice (2026)** | [tool-choice.md](references/tool-choice.md) | Deciding Biome vs ESLint; Oxlint challenger |
| **Biome setup** | [biome-setup.md](references/biome-setup.md) | Configuring `biome.json`, rules, domains, CI |
| **ESLint typed** | [eslint-typed.md](references/eslint-typed.md) | Flat config + typescript-eslint typed linting |

### Templates

| Template | When to Use |
|----------|-------------|
| [config-examples.md](references/templates/config-examples.md) | Copy a Biome or ESLint config into a project |

## Best Practices

### DO
- New project → default to **Biome 2.x** (one binary, fast, zero-config start)
- Established/typed-heavy codebase → **ESLint 10 + typescript-eslint** typed linting
- Run the linter in CI with `error` severity to gate merges

### DON'T
- Run Biome and Prettier on the same files (conflicting formatting)
- Enable typed linting and then complain about speed — it's the type checker cost
- Assume Biome covers every typescript-eslint rule — check the gaps first
Pliki w paczce (6)
  • .gitkeep 1 KB
  • SKILL.md 5 KB
  • references/biome-setup.md 3 KB
  • references/eslint-typed.md 4 KB
  • references/tool-choice.md 3 KB
  • references/templates/config-examples.md 3 KB

Wersje

W bazie nie ma innych skilli o nazwie ts-lint-format.

Migawka bazy z 13.11.2026 · wersja paczki 927a6c015099 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 2 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100eslint-biome
    Konfiguruje ESLint 9 w trybie flat config i linter Biome: typescript-eslint, kategorie reguł, migrację ze starej konfiguracji i optymalizację wydajności.
  • 100eslint
    Pomaga pracować z ESLint, wtykowym linterem JavaScript i TypeScript: konfiguracja, reguły, pluginy i flat config.
  • 95linting
    Prowadzi konfigurację lintowania i formatowania TypeScriptu z ESLint, typescript-eslint, Biome i Prettier: flat config, presety, zastąpienie ESLint i Prettier przez Biome, hooki pre-commit i CI.
  • 100eslint-to-biome
    Migruje linting JS i TS z ESLint i Prettier na Biome, gdy istnieje .eslintrc lub eslint.config i brak biome.json.
  • 100eslint
    Wspiera pracę z ESLint: Flat Config (eslint.config.js), typescript-eslint, własne reguły i automatyczne formatowanie dla jakości kodu JavaScript i TypeScript.
  • 100biome-tooling
    Obsługuje Biome, jedno narzędzie do formatowania i lintowania JavaScript i TypeScript, 15-20 razy szybsze od ESLint i Prettier, przy konfiguracji lub migracji z tych narzędzi.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.