From 03c30d6d37893586e533dde1d3a05abcf43f7b4e Mon Sep 17 00:00:00 2001 From: Johnie Hjelm Date: Fri, 16 Oct 2026 22:19:06 +0200 Subject: [PATCH 1/4] chore(ci): bump GitHub Actions and Node to 24.21.0 --- .github/workflows/master.yml | 6 +++--- .github/workflows/release.yml | 6 +++--- .nvmrc | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index 416374d..34c1925 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -14,15 +14,15 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7 - name: Install PNPM - uses: pnpm/action-setup@v5 + uses: pnpm/action-setup@v6 with: run_install: false - name: Setup Node and cache pnpm - uses: actions/setup-node@v6 + uses: actions/setup-node@v7 with: node-version-file: .nvmrc cache: "pnpm" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 15f5fb4..33c3b64 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,15 +12,15 @@ jobs: name: Release runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7 - name: Install PNPM - uses: pnpm/action-setup@v5 + uses: pnpm/action-setup@v6 with: run_install: false - name: Setup Node and cache pnpm - uses: actions/setup-node@v6 + uses: actions/setup-node@v7 with: node-version-file: .nvmrc cache: "pnpm" diff --git a/.nvmrc b/.nvmrc index a3b7a31..166aae1 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -v24.14.1 +v24.21.0 From c142ad63ef9603bcd3c25e904e00e73bc5132ba6 Mon Sep 17 00:00:00 2001 From: Johnie Hjelm Date: Fri, 16 Oct 2026 22:19:10 +0200 Subject: [PATCH 2/4] chore: migrate from Biome to oxlint and oxfmt via Ultracite Splits tsconfig so tests are type-checked (tsconfig.json, noEmit) while tsconfig.build.json emits dist, and adds a typecheck step to ci. Moves @types/coffeescript to dependencies because the published .d.ts now references CoffeeScript's option types, and pins esbuild as a devDependency. --- .changeset/config.json | 28 +- .claude/CLAUDE.md | 123 -- .claude/settings.json | 15 - .editorconfig | 19 - .github/hooks/ultracite.json | 16 +- AGENTS.md | 3 + CONTRIBUTING.md | 9 +- biome.json | 34 - lefthook.yml | 32 +- oxfmt.config.ts | 6 + oxlint.config.ts | 19 + package.json | 120 +- pnpm-lock.yaml | 3296 +++++++++++++++++++++------------- pnpm-workspace.yaml | 3 + tsconfig.build.json | 10 + tsconfig.json | 23 +- 16 files changed, 2167 insertions(+), 1589 deletions(-) delete mode 100644 .claude/CLAUDE.md delete mode 100644 .claude/settings.json delete mode 100644 .editorconfig delete mode 100644 biome.json create mode 100644 oxfmt.config.ts create mode 100644 oxlint.config.ts create mode 100644 pnpm-workspace.yaml create mode 100644 tsconfig.build.json diff --git a/.changeset/config.json b/.changeset/config.json index 625305e..7e868d0 100644 --- a/.changeset/config.json +++ b/.changeset/config.json @@ -1,16 +1,16 @@ { - "$schema": "https://unpkg.com/@changesets/config@3.1.1/schema.json", - "changelog": [ - "@changesets/changelog-github", - { - "repo": "johnie/esbuild-coffeescript" - } - ], - "commit": true, - "fixed": [], - "linked": [], - "access": "public", - "baseBranch": "master", - "updateInternalDependencies": "patch", - "ignore": [] + "$schema": "https://unpkg.com/@changesets/config@3.1.1/schema.json", + "changelog": [ + "@changesets/changelog-github", + { + "repo": "johnie/esbuild-coffeescript" + } + ], + "commit": true, + "fixed": [], + "linked": [], + "access": "public", + "baseBranch": "master", + "updateInternalDependencies": "patch", + "ignore": [] } diff --git a/.claude/CLAUDE.md b/.claude/CLAUDE.md deleted file mode 100644 index 76b4361..0000000 --- a/.claude/CLAUDE.md +++ /dev/null @@ -1,123 +0,0 @@ -# Ultracite Code Standards - -This project uses **Ultracite**, a zero-config preset that enforces strict code quality standards through automated formatting and linting. - -## Quick Reference - -- **Format code**: `pnpm dlx ultracite fix` -- **Check for issues**: `pnpm dlx ultracite check` -- **Diagnose setup**: `pnpm dlx ultracite doctor` - -Biome (the underlying engine) provides robust linting and formatting. Most issues are automatically fixable. - ---- - -## Core Principles - -Write code that is **accessible, performant, type-safe, and maintainable**. Focus on clarity and explicit intent over brevity. - -### Type Safety & Explicitness - -- Use explicit types for function parameters and return values when they enhance clarity -- Prefer `unknown` over `any` when the type is genuinely unknown -- Use const assertions (`as const`) for immutable values and literal types -- Leverage TypeScript's type narrowing instead of type assertions -- Use meaningful variable names instead of magic numbers - extract constants with descriptive names - -### Modern JavaScript/TypeScript - -- Use arrow functions for callbacks and short functions -- Prefer `for...of` loops over `.forEach()` and indexed `for` loops -- Use optional chaining (`?.`) and nullish coalescing (`??`) for safer property access -- Prefer template literals over string concatenation -- Use destructuring for object and array assignments -- Use `const` by default, `let` only when reassignment is needed, never `var` - -### Async & Promises - -- Always `await` promises in async functions - don't forget to use the return value -- Use `async/await` syntax instead of promise chains for better readability -- Handle errors appropriately in async code with try-catch blocks -- Don't use async functions as Promise executors - -### React & JSX - -- Use function components over class components -- Call hooks at the top level only, never conditionally -- Specify all dependencies in hook dependency arrays correctly -- Use the `key` prop for elements in iterables (prefer unique IDs over array indices) -- Nest children between opening and closing tags instead of passing as props -- Don't define components inside other components -- Use semantic HTML and ARIA attributes for accessibility: - - Provide meaningful alt text for images - - Use proper heading hierarchy - - Add labels for form inputs - - Include keyboard event handlers alongside mouse events - - Use semantic elements (`