Commit Graph

9 Commits

Author SHA1 Message Date
Matt Godbolt
03d20c5fde Move assert.ts and rison.ts to shared/ directory (#8246)
## Summary
Moves `static/assert.ts` and `static/rison.ts` to `shared/` directory to
make them available to both frontend and backend code without browser
dependencies. Updates all import paths across the codebase (~47 files).

## Motivation
This refactoring eliminates browser dependencies in these utilities,
allowing them to be imported by Node.js contexts (like Cypress test
files) without causing module load failures. This is a prerequisite for
upcoming Cypress test improvements.

## Changes
- Move `static/assert.ts` → `shared/assert.ts`
- Move `static/rison.ts` → `shared/rison.ts`  
- Update `biome.json` to allow `hasOwnProperty` in `shared/` directory
- Update all imports across `static/`, `lib/`, and `test/` directories
(47 files changed)

## Benefits
- No functional changes, purely a code reorganization
- Makes these utilities accessible to both frontend and backend without
circular dependencies
- Enables future Cypress improvements that require these utilities in
Node.js context
- All tests pass ✓ (699 tests)

## Test Plan
- [x] TypeScript compilation passes
- [x] Linting passes
- [x] All unit tests pass (699 tests)
- [x] Pre-commit hooks pass

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-11-04 10:58:11 -06:00
Matt Godbolt
8734c3e492 Update biome (#7956)
- latest biome, and fix its configuration
- fixes "static" content to be globally configured too (instead of
per-line)
- fixes issues:
  - imports fixed up
  - `Date.now()` vs `+new Date()`
  - some unused things `_` prefixed
 
After discussion with the team, turned off the unused parameter warning.
2025-07-28 10:34:46 -05:00
Mats Jun Larsen
b90ac4c382 Ban unused imports (#7827) 2025-06-18 14:21:25 +00:00
Mats Jun Larsen
1e4f0cbb49 Revert noThisInStatic Biome rule for argument-parsers.ts (#7529) 2025-03-29 15:33:40 +01:00
Mats Jun Larsen
127c12e0bf Re-enable noShadowRestrictedNames Biome rule (#7387)
I'm not very opinionated on this, but I think it makes enough sense to
do
2025-02-13 00:43:55 +09:00
Mats Jun Larsen
be1e1972c7 Re-enable noConfusingVoidType and noVoidTypeReturn Biome rules (#7372)
Re-enables these rules and fixes the one spot it was applicable. Infact,
noConfusingVoidType had zero matches (because they were fixed in #7080)
2025-02-10 16:50:31 +00:00
Mats Jun Larsen
df522e9831 Re-enable useLiteralEnumMembers Biome rule (#7374)
Disabled the lint for the only match as the code is mostly ported from
cutter's graph engine.
2025-02-10 16:50:22 +00:00
Mats Jun Larsen
c6b46c0a37 Re-enable noBannedTypes Biome rule (#7375)
Function is usually frowned upon in TS because it gives no description
of what type of function.
2025-02-10 16:50:12 +00:00
Mats Jun Larsen
5eea63328f Migrate to Biome for linting and formatting (#7033) 2025-02-02 17:54:31 +00:00