REA lint-staged JSON notes (unofficial)
lint-staged pins (package.json "lint-staged" / .lintstagedrc.json) record glob → command identity. In REA 6.7.x, treat selected glob/command labels as Evidence beside archive/package routes — complementing husky/lefthook cousins without inventing APIs. Chosen instead of a husky-json near-dupe of rea-husky-hooks / rea-husky-dir.
Mental model
- Authorize the lint-staged project tree (+ packaged configs you hold).
- Quote selected glob/command labels you actually see (never paste secrets).
- Cousins → husky-hooks · lefthook-yml · pre-commit-config · simple-git-hooks.
- Bind absolute paths honestly → rea-evidence-explained.
- Do not invent a
inspect_lint_staged_jsonAPI REA never called.
Minimal path
# authorized package.json "lint-staged" / .lintstagedrc.json (+ artifact you hold)
# quote selected glob/command labels into case notes
# cousins → peer lanes above
# REA package/archive routes on /absolute/path/artifact --json
# do not invent: rea inspect_lint_staged_json .
Compare
| Artifact | Honest posture |
|---|---|
| package.json "lint-staged" / .lintstagedrc.json | staged-file command identity facts |
| Peer | rea-husky-hooks |
| Peer | rea-lefthook-yml |
| Evidence binder | rea-evidence-explained |
Config literacy notes (authorized trees)
- Quote globs, command names, and concurrency flags — enough for most Evidence binders.
- Hook scripts and env vars often embed secrets — record key names only.
- Keep lint-staged distinct from Husky hook paths and Lefthook YAML in case notes.
- Concurrent / relative path options are identity Evidence — label them separately from cousin pages.
- Select keys are useful inventory — quote them without inventing REA helpers for
lint-stagedruns.
Scope we will not cover
- No inventing
inspect_lint_staged_json/ automatic attacks against foreign lint-staged hosts. - No credential theft from tokens, CI secrets, or remote URIs.
- No pirate redistribution of proprietary lint-staged trees.
- No crack framing via lint-staged pins.
- No cookbooks that weaken remote auth on foreign services.
Honest limits
RepoRead documents config literacy — how authorized lint-staged JSON trees relate to Evidence — not a full lint-staged course. Prefer upstream lint-staged docs for config details. When REA 6.7.0 has no dedicated helper, quote the pins you opened and stay on documented archive/package lanes.
RepoRead is unofficial. Prefer config honesty + DISCLAIMER.md.
FAQ
How is this different from rea-husky-hooks / rea-lefthook-yml / rea-pre-commit-config?
rea-husky-hooks, rea-lefthook-yml, and rea-pre-commit-config cover peer hook runners. This page zooms on lint-staged JSON identity — it does not overwrite those pages. Chosen instead of a husky-json near-dupe of husky-dir/hooks.
Is there inspect_lint_staged_json in 6.7.0?
Not assumed. Quote glob/command labels you actually open, then use documented package/archive lanes. Do not invent inspect_lint_staged_json.
Does REA connect to remote lint-staged services or steal credentials?
No. Local trees only. Redact tokens, credentials, and remote URIs; do not treat REA as a lint-staged runner. No credential theft.
How should I label Evidence vs other hook/config files?
Label Evidence by the file present. Keep lint-staged JSON separate from rea-husky-hooks, rea-lefthook-yml, and rea-pre-commit-config.
npm version checked?
rea-agents 6.7.0 (re-checked 2026-10-24).