mirror of
https://gitlab.com/MisterBiggs/secure-act-2.0.git
synced 2025-08-17 16:24:43 +00:00
1.0 KiB
1.0 KiB
AGENTS.md — secure_student_loan
Important: Agents cannot run/view this project
Testing: User must open index.html
in browser. For debugging, add console.log()
statements and ask user for console output.
Commands
- Run tests:
node calculations.test.js
(custom assert functions) - Single test: Comment out other tests in file, then run
- Lint: None (maintain consistency manually)
Code Style
- No package manager: CDN-only (Tailwind, Alpine.js v3, ApexCharts)
- HTML: 4-space indent, semantic tags, ARIA labels, mobile-first
- CSS: Tailwind utilities only; responsive:
md:
lg:
xl:
- JS: ES6, Alpine reactivity (
x-data
,x-model.number
,x-show
) - Imports: CDN scripts with
defer
before</body>
- Naming: kebab-case for x-data; camelCase for JS functions
- Testing: assert/assertClose functions; test edge cases
- Structure: index.html (UI), calculations.js (logic), calculations.test.js
- Constants: 7% investment return, 5% loan interest hardcoded