Problem
eslint.config.js exists and both eslint and prettier are declared in devDependencies, but package.json defines no lint, lint:fix, or format script. Contributors have no documented way to run the linter, and the planned CI workflow (issue #5) expects npm run lint to exist. Lint and formatting are therefore never enforced.
What needs to be done
- Add scripts to
package.json:
"lint": "eslint ."
"lint:fix": "eslint . --fix"
"format": "prettier --check ."
"format:fix": "prettier --write ."
- Add a
.prettierignore/.eslintignore (or the flat-config equivalent ignores) covering dist, node_modules, and build output.
- Run the linter and fix or explicitly document any pre-existing violations so the script exits clean.
Files
package.json
eslint.config.js
Acceptance deliverables
Tests to pass
npm run lint exits 0.
npm run format reports no formatting differences.
Problem
eslint.config.jsexists and botheslintandprettierare declared indevDependencies, butpackage.jsondefines nolint,lint:fix, orformatscript. Contributors have no documented way to run the linter, and the planned CI workflow (issue #5) expectsnpm run lintto exist. Lint and formatting are therefore never enforced.What needs to be done
package.json:"lint": "eslint .""lint:fix": "eslint . --fix""format": "prettier --check .""format:fix": "prettier --write .".prettierignore/.eslintignore(or the flat-config equivalentignores) coveringdist,node_modules, and build output.Files
package.jsoneslint.config.jsAcceptance deliverables
npm run lintandnpm run formatexist and exit successfully on a clean tree.npm run lintwithout further changes.Tests to pass
npm run lintexits 0.npm run formatreports no formatting differences.