Commit graph

5 commits

Author SHA1 Message Date
Aric Camarata
70bd956179 ci: format all files with prettier to fix format:check 2026-05-31 08:50:45 -04:00
Aric Camarata
40478b6f7b ci: fix eslint - add parserOptions.project for typed linting rules 2026-05-31 08:49:46 -04:00
Aric Camarata
cae2726766 ci: fix eslint flat config - add files pattern to match TS files in src/ 2026-05-31 08:48:45 -04:00
Aric Camarata
cdcede1c58 chore: adopt shared config packages (tsconfig, eslint, prettier) 2026-05-30 15:12:16 -04:00
Aric Camarata
41956c0dc4 refactor: code quality improvements and Temporal Protocol compliance
- Replace O(n) while-loops in dateAdd() with O(1) modular arithmetic
- Implement overflow option handling in dateFromFields, yearMonthFromFields, monthDayFromFields
- Add fields() method per Temporal Calendar Protocol
- Extract shared borrow logic from dateUntil() into borrowHijriDiff helper
- Replace magic number 1444 with REFERENCE_YEAR constant
- Convert test suites to node:test runner with describe/it blocks
- Add tests for dateUntil, dateAdd with days/weeks, overflow reject/constrain, fields(), yearMonthFromFields, monthDayFromFields
- Add ESLint + Prettier with typescript-eslint config
- Add lint job to CI workflow
- Add noImplicitReturns and noFallthroughCasesInSwitch to tsconfig
- Disable unused sourcemap generation in tsup
- Update .editorconfig to include .mts and .cts extensions
- Add missing AI agent dirs to .gitignore
2026-03-08 11:37:22 -04:00