# ESLint

Catch JavaScript mistakes before review

Choose a shared rule set for likely bugs such as unreachable branches and unused variables. Run it on changed source with the same configuration locally and in CI.

Category: Code quality
Languages: JavaScript, TypeScript

## Standard evidence

Rubric v1 · 5/8 verified · 3 unknown · 0 contrary · reviewed 2026-11-28

- **Definition** (verified) — The no-unreachable rule identifies statements after unconditional control transfers such as return or throw. Its reference differentiates intended exceptions from unreachable statements. Reviewed 2026-11-28. [Source](https://eslint.org/docs/latest/rules/no-unreachable)
- **Measurement** (verified) — ESLint distinguishes lint errors from configuration failures in its CLI exit codes. A configured maximum warning count can also fail a run. Reviewed 2026-11-28. [Source](https://eslint.org/docs/latest/use/command-line-interface)
- **Conformance** (verified) — ESLint's RuleTester fixture supplies both valid and invalid JavaScript programs and specifies the expected diagnostics for statements that cannot execute. Reviewed 2026-11-28. [Source](https://github.com/eslint/eslint/blob/main/tests/lib/rules/no-unreachable.js)
- **CI enforcement** (unknown) — No reviewed evidence is recorded for this dimension.
- **Getting started** (verified) — The guide gives supported Node prerequisites, initializes ESLint in an existing project, then invokes the CLI on a file using the generated configuration. Reviewed 2026-11-28. [Source](https://eslint.org/docs/latest/use/getting-started)
- **Real-world adoption** (verified) — webpack includes the lint:code script in its aggregate lint task and invokes ESLint across the repository. This documents downstream use of an ESLint check. Reviewed 2026-11-28. [Source](https://github.com/webpack/webpack/blob/main/package.json)
- **Agent guidance** (unknown) — No reviewed evidence is recorded for this dimension.
- **Agent portability** (unknown) — No reviewed evidence is recorded for this dimension.

## Adoption

Use ESLint in this repository to meet this standard: Catch JavaScript mistakes before review. Choose a shared rule set for likely bugs such as unreachable branches and unused variables. Run it on changed source with the same configuration locally and in CI. Inspect the repository configuration, record the baseline and exact reproduction steps, then add the smallest repeatable check that detects a regression.

### Tool command

```
npx --no-install eslint .
```

Seikika package: no verified installation is listed.

## References

- [Tool documentation](https://eslint.org/docs/latest/)
- [Agent skill](/skills/eslint/SKILL.md)
