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.
JavaScript / TypeScript
Community rubric · v1
The evidence
One point for each verified check. Unknown means we still need evidence. Contrary evidence records an observed result that goes against the criterion.
Latest evidence review ·
Definition
VerifiedThe no-unreachable rule identifies statements after unconditional control transfers such as return or throw. Its reference differentiates intended exceptions from unreachable statements.
Measurement
VerifiedESLint distinguishes lint errors from configuration failures in its CLI exit codes. A configured maximum warning count can also fail a run.
Conformance
VerifiedESLint's RuleTester fixture supplies both valid and invalid JavaScript programs and specifies the expected diagnostics for statements that cannot execute.
CI enforcement
UnknownNo reviewed evidence is recorded for this dimension.
Can a change trigger a useful check? Contribute evidence ↗
Getting started
VerifiedThe guide gives supported Node prerequisites, initializes ESLint in an existing project, then invokes the CLI on a file using the generated configuration.
Real-world adoption
Verifiedwebpack includes the lint:code script in its aggregate lint task and invokes ESLint across the repository. This documents downstream use of an ESLint check.
Agent guidance
UnknownNo reviewed evidence is recorded for this dimension.
Can an agent act on a specific finding? Contribute evidence ↗
Agent portability
UnknownNo reviewed evidence is recorded for this dimension.
Does the practice work in two agent harnesses? Contribute evidence ↗
Use this standard
Run the check with the tool installed and configured for your project.
npx --no-install eslint .
Agent prompt
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.