GS/BS
← Standards directory
Code quality

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

Evidence coverage5 / 8
5 supported · 3 unresolved

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

    Verified

    The no-unreachable rule identifies statements after unconditional control transfers such as return or throw. Its reference differentiates intended exceptions from unreachable statements.

    Cited source ↗
  • Measurement

    Verified

    ESLint distinguishes lint errors from configuration failures in its CLI exit codes. A configured maximum warning count can also fail a run.

    Cited source ↗
  • Conformance

    Verified

    ESLint's RuleTester fixture supplies both valid and invalid JavaScript programs and specifies the expected diagnostics for statements that cannot execute.

    Cited source ↗
  • CI enforcement

    Unknown

    No reviewed evidence is recorded for this dimension.

    Can a change trigger a useful check? Contribute evidence ↗

  • 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.

    Cited source ↗
  • 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.

    Cited source ↗
  • Agent guidance

    Unknown

    No reviewed evidence is recorded for this dimension.

    Can an agent act on a specific finding? Contribute evidence ↗

  • Agent portability

    Unknown

    No 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.
Read the agent skill ↗

Primary source

ESLint documentation ↗