REA lint-staged notes (unofficial)

Last updated: · By the RepoRead editorial team · Unofficial guide
Quick answer

lint-staged pins pre-commit task identity (which linters run on staged files). In REA 6.7.x, treat selected globs/commands as Evidence beside archive/package routes — complementing rea-husky-hooks without inventing APIs.

Mental model

  1. Authorize the lint-staged config (+ artifacts you hold).
  2. Quote selected globs / commands / concurrent pins you actually see (redact tokens).
  3. Husky cousin → rea-husky-hooks; ESLint flat → rea-eslint-flat.
  4. Bind absolute paths honestly → rea-absolute-paths.
  5. Do not invent a lint-staged API REA never called.

Minimal path

# authorized package.json#lint-staged / .lintstagedrc* (+ artifact you hold)
# quote selected globs/commands into case notes (redact tokens)
# cousins → husky / eslint-flat / pre-commit-config
# REA package/archive routes on /absolute/path/artifact --json
# do not invent: rea inspect_lint_staged .

Compare

ArtifactHonest posture
lint-staged configStaged-task identity facts
Husky cousinrea-husky-hooks
ESLint flat cousinrea-eslint-flat
Evidence binderrea-evidence-explained

Scope we will not cover

  • No inventing inspect_lint_staged / automatic hook runs.
  • No credential theft from npm/git tokens / env secrets.
  • No pirate redistribution of paid packages.
  • No crack framing via lint-staged pins.

RepoRead is unofficial. Prefer config honesty + DISCLAIMER.md.

FAQ

How is this different from rea-husky-hooks / rea-pre-commit-config?

rea-husky-hooks zooms on Husky hook paths. rea-pre-commit-config zooms on Python-style hook repos. This page zooms on lint-staged task pins as Evidence — it does not overwrite those pages.

Is there inspect_lint_staged in 6.7.0?

Not assumed. Quote package.json#lint-staged / .lintstagedrc* pins you actually open, then use documented package/archive lanes. Do not invent inspect_lint_staged.

Does REA run lint-staged or steal git/npm tokens?

No. Local trees only. Redact tokens/env; do not treat REA as a hook runner.

lint-staged vs ESLint flat / Oxlint?

Label Evidence by the file present. Keep this lane separate from rea-eslint-flat and rea-oxlint.

npm version checked?

rea-agents 6.7.0 (re-checked 2026-10-24).

Sources