build: lint with oxlint and format with oxfmt
FB
4h ago+1696+1696+0123456789012345678901234567890123456789-2699-2699-0123456789012345678901234567890123456789
Replace ESLint and Biome with type-aware oxlint and oxfmt. Keep TypeScript 6 for TypeDoc and separate project checking from library emit.
- Scope rule exceptions to the existing parser conventions, including nullable options, positional overloads, DOM getters, and indexed lookups. Preserve module order and the existing Vitest assertion style.
- Type fixture inputs, compare own fixture keys, and assert strict equality between streaming and one-shot parses.
- No longer checked — Duplicate JSON keys and strict JSON comment rules, package manifest linting, Node engine compatibility, and plugin-specific checks without a stock equivalent.
- Enabled since review — Oxfmt sorts imports and
package.json. Oxlint enables 12 more rules, includingRecordstyle and unsafe assertion checks in library code. The two remaining library assertions use documenteddisable-next-linecomments. - All 34 tests, lint, the library build, and TypeDoc passed locally. The library's runtime code is unchanged. Three declaration types now use
Record. TypeDoc still reports its existing warning.
🤖 Generated with Claude Code
Summary by CodeRabbit
- Chores
- Updated project build, linting, and formatting workflows. Build output now excludes tests and fixtures.
- Replaced the previous linting and formatting setup with new tools and configurations.
- Tests
- Tightened comparisons in parsing and cloning tests, including checks that distinguish strict equality.
- No user-facing changes
- These updates do not change the library’s runtime behavior.