---
name: eslint
description: "Use when adopting ESLint to assess this standard: Catch JavaScript mistakes before review"
---

# Apply ESLint

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.

## Procedure

1. Inspect the repository configuration and identify the files or targets covered by ESLint.
2. 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.
3. Record the tool version, configuration, scope and findings. Explain any checks that could not run.
4. Use the same invocation after changes and compare the evidence against the baseline.

Refer to [the upstream documentation](https://eslint.org/docs/latest/) for configuration and prerequisites.

## Tool invocation

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