Skip to content

[cc] add tsconfig.json for explicit strict mode #84

@anipotts

Description

@anipotts

Source: Apr 2026 conventions audit

Problem

`plugins/cc/` has no `tsconfig.json`. bun runs the .ts files directly without one, so it works — but:

  1. IDE/editors fall back to defaults that may not match bun's runtime
  2. `bunx tsc --noEmit` requires CLI flags every time
  3. Pre-commit hooks / CI can't easily enforce strict mode
  4. New contributors can't tell what TS dialect/options the project expects

Fix

`plugins/cc/tsconfig.json`:

```json
{
"compilerOptions": {
"target": "ES2022",
"module": "ESNext",
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"resolveJsonModule": true,
"skipLibCheck": true,
"strict": true,
"noUncheckedIndexedAccess": true,
"noImplicitOverride": true,
"exactOptionalPropertyTypes": true,
"types": ["bun-types"]
},
"include": ["**/*.ts"],
"exclude": ["node_modules", "dist"]
}
```

Acceptance criteria

  • `bunx tsc --noEmit` passes from `plugins/cc/` with no extra flags
  • Strict mode catches existing issues (or none, if already clean)
  • CI runs the check

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions