node-lint
Skill1 starsChanged 3 months agoMITView on GitHub
Sets up and tunes the linter and formatter for Node/TypeScript - Biome as the fast one-tool option or ESLint flat config plus Prettier, rule tuning, import sorting, unused-import removal, eslintrc-to-flat and ESLint-to-Biome migrations. Use when the user asks to set up or fix linting, formatting, a slow linter, ESLint, Biome or Prettier. Not for Next.js apps, type checking, or test setup.
In this repository11 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- add-skillSkill
- publish-repoSkill
- nextjs-qualitySkill
- node-ciSkill
- node-packagingSkill
- node-releaseSkill
- node-supply-chainSkill
- node-testingSkill
- node-typescriptSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 20
Test setup → node-testing.
- Distinctive: line 32
Never two formatters; never ESLint stylistic rules alongside a formatter.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
node-lint
Sets up lint + format so they catch real defects instead of fighting each other.
The failures this skill fixes: models write legacy .eslintrc configs that current
ESLint majors no longer load, mix two formatters, claim Biome replaces type
checking, and reset intentional rule customizations during migrations.
When NOT to use
- Next.js apps →
nextjs-qualityownseslint-config-nextand RSC rules. - Type checking / tsconfig →
node-typescript(Biome's type-aware rules are not atscreplacement — never claim otherwise). - Test setup →
node-testing; CI workflow authoring →node-ci.
Workflow
- Detect before choosing. Package manager (lockfile), existing configs
(
.eslintrc*,eslint.config.*,biome.json*,.prettierrc*), framework, and plugin needs (a11y, imports, framework-specific). Plugin needs decide the tool: read the decision table inreferences/lint-playbook.md.- Biome — one tool for lint+format, fastest path for TS libraries/apps without exotic plugin needs.
- ESLint (flat config only — modern majors do not load eslintrc) + Prettier — when the plugin ecosystem is required.
- Never two formatters; never ESLint stylistic rules alongside a formatter.
- Write the explicit config from the playbook's starter blocks — full config,
no reliance on version-varying defaults. Wire
package.jsonscripts (lint,format,lint:fix) with--max-warnings=0for CI use. - Migrations (when an old setup exists): follow the playbook's path —
official flat-config migrator or
biome migrate eslint. Diff the effective rule set; preserve intentional customizations; run on the whole codebase and triage new findings before deleting the old config. - Verify:
plus a clean run of the chosen tool over the repo (python3 "${CLAUDE_SKILL_DIR}/scripts/check_lint_setup.py"npx biome check .ornpx eslint . --max-warnings=0). - Report the tool choice rationale, rules deliberately disabled, and where
CI should call the scripts (route the workflow wiring to
node-ci).
Output spec
One linter + one formatter, explicit committed config, scripts wired, zero errors/warnings on the current codebase (or a documented triage list), no leftover legacy config files, editor settings noted.
Gotchas
- Flat config resolves relative to each linted file's directory in current ESLint majors — monorepo packages can carry their own config layers.
biome migrate eslintmaps what it can; rules without Biome equivalents are dropped silently — always diff and list them.- Version-gate everything: tool majors move fast; the playbook marks claims that must be re-verified against official docs at use time.
- A lint pass that only silences rules is a failure — tune by fixing signal.
Files
references/lint-playbook.md— decision table, explicit starter configs, migration paths, tuning discipline.scripts/check_lint_setup.py— deterministic sanity checks (single formatter, no legacy+flat config coexistence, scripts wired); non-zero exit on violations.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

