Found while working #175: running make fmt reformats static/js/alpine.min.js — script/fmt passes the glob static/js/*.js to prettier and there is no .prettierignore, so
the vendored minified Alpine.js bundle gets expanded/rewritten.
Vendored artifacts must never be reformatted; a formatter pass
should leave the tree identical unless first-party code changed.
Remediation: add a .prettierignore containing at least static/js/alpine.min.js (or *.min.js). Verify script/fmt's
explicit file arguments still respect the ignore file (prettier
requires --ignore-path handling to be confirmed when files are
passed explicitly); if not, adjust the glob in script/fmt to
exclude minified files.
Definition of done:
make fmt on a clean tree produces zero modifications
(git status clean afterward)
static/js/alpine.min.js byte-identical before and after make fmt
first-party JS (dashboard.js, deployment.js, utils.js) is
still formatted
lands via PR from a feature branch off main
Found while working #175: running `make fmt` reformats
`static/js/alpine.min.js` — `script/fmt` passes the glob
`static/js/*.js` to prettier and there is no `.prettierignore`, so
the vendored minified Alpine.js bundle gets expanded/rewritten.
Vendored artifacts must never be reformatted; a formatter pass
should leave the tree identical unless first-party code changed.
Remediation: add a `.prettierignore` containing at least
`static/js/alpine.min.js` (or `*.min.js`). Verify `script/fmt`'s
explicit file arguments still respect the ignore file (prettier
requires `--ignore-path` handling to be confirmed when files are
passed explicitly); if not, adjust the glob in `script/fmt` to
exclude minified files.
Definition of done:
- `make fmt` on a clean tree produces zero modifications
(`git status` clean afterward)
- `static/js/alpine.min.js` byte-identical before and after
`make fmt`
- first-party JS (`dashboard.js`, `deployment.js`, `utils.js`) is
still formatted
- lands via PR from a feature branch off `main`
clawbot
added this to the 1.1.0 milestone 2026-08-07 18:47:54 +02:00
Added .prettierignore (*.min.js) so script/fmt's static/js/*.js glob no longer feeds the vendored static/js/alpine.min.js to prettier. Confirmed prettier honors the ignore file even for files named explicitly on the command line, so the glob was left unchanged. make fmt on a clean tree now makes zero changes; alpine.min.js is byte-identical; first-party JS still formats.
Added `.prettierignore` (`*.min.js`) so `script/fmt`'s `static/js/*.js` glob no longer feeds the vendored `static/js/alpine.min.js` to prettier. Confirmed prettier honors the ignore file even for files named explicitly on the command line, so the glob was left unchanged. `make fmt` on a clean tree now makes zero changes; `alpine.min.js` is byte-identical; first-party JS still formats.
PR: https://git.eeqj.de/sneak/upaas/pulls/195
Model: opus-4-8
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Found while working #175: running
make fmtreformatsstatic/js/alpine.min.js—script/fmtpasses the globstatic/js/*.jsto prettier and there is no.prettierignore, sothe vendored minified Alpine.js bundle gets expanded/rewritten.
Vendored artifacts must never be reformatted; a formatter pass
should leave the tree identical unless first-party code changed.
Remediation: add a
.prettierignorecontaining at leaststatic/js/alpine.min.js(or*.min.js). Verifyscript/fmt'sexplicit file arguments still respect the ignore file (prettier
requires
--ignore-pathhandling to be confirmed when files arepassed explicitly); if not, adjust the glob in
script/fmttoexclude minified files.
Definition of done:
make fmton a clean tree produces zero modifications(
git statusclean afterward)static/js/alpine.min.jsbyte-identical before and aftermake fmtdashboard.js,deployment.js,utils.js) isstill formatted
mainclawbot referenced this issue2026-09-03 18:29:27 +02:00
clawbot referenced this issue2026-09-03 18:29:56 +02:00
Added
.prettierignore(*.min.js) soscript/fmt'sstatic/js/*.jsglob no longer feeds the vendoredstatic/js/alpine.min.jsto prettier. Confirmed prettier honors the ignore file even for files named explicitly on the command line, so the glob was left unchanged.make fmton a clean tree now makes zero changes;alpine.min.jsis byte-identical; first-party JS still formats.PR: #195
Model: opus-4-8