Skip to content

chore(dev-tooling): adopt canonical Bun+TS baseline for opencode-plugin#8

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 for opencode-plugin#8
JRedeker merged 1 commit into
trunkfrom
docs/bun-ts-dev-tooling-baseline

Conversation

@JRedeker

Copy link
Copy Markdown
Contributor

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

Changes (opencode-plugin subdir)

  • PM declaration: packageManager: npm@11.12.1, engines.node: ">=24.0.0"
  • Bun types: migrated bun-types@types/bun + tsconfig types: ["bun"]
  • tsconfig: added noEmit: true (was relying on script flag)
  • ESLint: added eslint-config-prettier last; added ignores block (dist/, node_modules/, coverage/)
  • Preserved: existing .prettierrc settings (semi: false, singleQuote: false, tabWidth: 2, trailingComma: "es5", printWidth: 100), existing @typescript-eslint/no-unused-vars rule

Verification

$ npm run check
$ tsc --noEmit
$ eslint .
$ prettier --check .
All matched files use Prettier code style!
$ vitest run
Test Files  6 passed (6)
     Tests  19 passed (19)

Avoidances honored

  • Stay on npm (no migration to pnpm)
  • No new CI for plugin subdir (parent's Go CI unchanged)
  • No type-checked ESLint rules
  • No build-tool changes (no build script added; tsc can emit to dist/ but no script wires it)
  • Preserve existing .prettierrc customizations

Refs

  • Tracking ADV change: optimizeBunTsDevToolingV4
  • Baseline doc: ~/toolbox/docs/dev-tooling-baseline.md

Per ~/toolbox/docs/dev-tooling-baseline.md (D1-D7):
- Add packageManager (npm@11.12.1) + engines.node (>=24.0.0) declarations
- Migrate bun-types -> @types/bun + tsconfig types: ["bun"]
- Add noEmit: true to tsconfig (was relying on script flag)
- Add eslint-config-prettier to eslint.config.js (preserves existing custom rule)
- Add ignores block to eslint flat config (dist/, node_modules/, coverage/)
- Preserve existing .prettierrc custom settings (semi:false, singleQuote:false, etc.)

Verified: npm run check passes (typecheck + lint + format:check + test 19/19)

Refs: optimizeBunTsDevToolingV4
@JRedeker
JRedeker merged commit 69ef505 into trunk Jul 21, 2026
6 checks 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