REA lint-staged notes (unofficial)
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
- Authorize the lint-staged config (+ artifacts you hold).
- Quote selected globs / commands / concurrent pins you actually see (redact tokens).
- Husky cousin → rea-husky-hooks; ESLint flat → rea-eslint-flat.
- Bind absolute paths honestly → rea-absolute-paths.
- 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
| Artifact | Honest posture |
|---|---|
| lint-staged config | Staged-task identity facts |
| Husky cousin | rea-husky-hooks |
| ESLint flat cousin | rea-eslint-flat |
| Evidence binder | rea-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).