Skip to content

chore(dev-tooling): adopt canonical Bun+TS baseline#7

Merged
JRedeker merged 1 commit into
trunkfrom
docs/bun-ts-dev-tooling-baseline
Jul 21, 2026
Merged

chore(dev-tooling): adopt canonical Bun+TS baseline#7
JRedeker merged 1 commit into
trunkfrom
docs/bun-ts-dev-tooling-baseline

Conversation

@JRedeker

Copy link
Copy Markdown
Owner

Per ~/toolbox/docs/dev-tooling-baseline.md (D1-D7) — first repo migrated as part of optimizeBunTsDevToolingV4 ADV change (smallest-first phasing).

Changes

  • PM declaration: packageManager: bun@1.3.14, engines.node: ">=24.0.0"
  • Bun types: migrated bun-types@types/bun + tsconfig types: ["bun"] (per Bun docs 2026 + DefinitelyTyped PR #67827 shim transition)
  • ESLint flat config: @eslint/js + typescript-eslint recommended + eslint-config-prettier (untyped baseline; typed linting opt-in per-repo)
  • Prettier: defaults (.prettierrc: {}); .prettierignore excludes .adv/, .opencode/, bun.lock, docs/
  • Canonical scripts: typecheck, lint, lint:fix, format, format:check, check (aggregate); ci now calls bun run check
  • Pre-existing lint fixes (6 errors surfaced by new ESLint):
    • Removed unused imports (ExecuteMorphEditArgs, FailureKind, statSync)
    • Removed unused variable (originalCode in test)
    • Removed redundant true && in NaN-threshold test
    • Simplified regex escapes in scrubSecrets
  • Baseline reformatting: prettier defaults applied to existing source files (README.md, instructions/morph-tools.md, src/{constants,execute,imports}.ts, index.{ts,test.ts})

Verification

$ bun run check
$ tsc --noEmit
$ eslint .
$ prettier --check .
Checking formatting...
All matched files use Prettier code style!
$ bun test
bun test v1.3.14 (0d9b296a)

 137 pass
 0 fail
 295 expect() calls
Ran 137 tests across 1 file. [140.00ms]

Avoidances honored

  • Test runner stays bun test (not migrated to Vitest)
  • No type-checked ESLint rules (recommendedTypeChecked opt-in for future)
  • No Biome migration
  • No build-tool changes

Refs

  • Tracking ADV change: optimizeBunTsDevToolingV4 (proposal/discovery/design/prep approved)
  • Baseline doc: ~/toolbox/docs/dev-tooling-baseline.md
  • Sourced: Incompatibility for type-checking with bun vitest-dev/vitest#5441 (Bun+Vitest unsupported), typescript-eslint.io/getting-started, Bun docs/typescript, DefinitelyTyped PR #67827

Per ~/toolbox/docs/dev-tooling-baseline.md (D1-D7):
- Add packageManager (bun@1.3.14) + engines.node (>=24.0.0) declarations
- Migrate bun-types -> @types/bun + tsconfig types: ["bun"]
- Add eslint.config.js (flat, untyped recommended + argsIgnorePattern ^_)
- Add .prettierrc (defaults) + .prettierignore (.adv/, .opencode/, bun.lock, docs/)
- Add canonical scripts: lint, lint:fix, format, format:check, check
- Update ci script to call bun run check
- Fix 6 pre-existing lint errors (unused imports, constant-condition, unnecessary escape)
- Reformat existing source files with prettier defaults (baseline adoption)

Verified: bun run check passes (typecheck + lint + format:check + test 137/137)

Refs: optimizeBunTsDevToolingV4
@JRedeker
JRedeker merged commit 6cbc580 into trunk Jul 21, 2026
1 check passed
@JRedeker
JRedeker deleted the docs/bun-ts-dev-tooling-baseline branch July 21, 2026 21:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant