Skip to content
laurigates avatar

typescript-plugin

TypeScript plugin pairing strict type configuration with Bun runtime tooling, Biome linting, and Knip dead code detection.

CCM score
59 of 100
version
1.10.4
GitHub stars
60
View on GitHub

Own this plugin? Claim it

What it does

  • Adds Bun skills for bun install, bun add, bun test, bun build, bun debug, and bun publish, plus biome-tooling for formatting and linting
  • Covers strict tsconfig patterns, Sentry error and performance monitoring, and Temporal API usage in place of Date
  • Provides debugging guidance for the Bun inspector, including --inspect-brk for breaking at the first line and memory profiling
  • Designed for TypeScript projects that run on Bun and want dead code detection through knip-dead-code

TypeScript development - strict types, ESLint, Biome

Add marketplace

/plugin marketplace add laurigates/claude-plugins

Run it inside Claude Code once, then install the plugin below.

Install

/plugin install typescript-plugin@laurigates-claude-plugins

Run it inside Claude Code after adding the marketplace.

Files

Discovered from source

Biome Tooling

Biome is a modern, performant toolchain for JavaScript, TypeScript, and related web languages. It combines formatting, linting, and import organization into a single tool that's 15-20x faster than ESLint/Prettier.

Keep ESLint alongside when the project needs plugin-only rules (React hooks, a11y), framework-specific rules (Next.js, Nuxt), or carries heavy custom ESLint configuration.

Hybrid approach: Use Biome for formatting, ESLint for specialized linting.

Core Expertise

What is Biome?

  • All-in-one toolchain: Linter + formatter + import sorter
  • Zero-config: Works out of the box with sensible defaults
  • Fast: Written in Rust, processes files in parallel
  • Compatible: Matches Prettier formatting 97%+
  • Supports: JavaScript, TypeScript, JSX, TSX, JSON, CSS

Installation

# Project-local (recommended)
bun add --dev @biomejs/biome

# Verify installation
bunx biome --version

# Initialize configuration
bunx biome init

Essential Commands

# Format files
bunx biome format --write src/

# Lint with fixes
bunx biome lint --write src/

# Check everything (format + lint + organize imports)
bunx biome check --write src/

# Check without changes (CI mode)
bunx biome check src/

# CI mode (exits with error on issues)
bunx biome ci src/

# Migrate from ESLint/Prettier
bunx biome migrate eslint --write
bunx biome migrate prettier --write

# Explain a rule
bunx biome explain noUnusedVariables

Configuration (biome.json)

Minimal Setup (Zero Config)

Biome works without configuration. For basic customization:

{
  "$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
  "vcs": {
    "enabled": true,
    "clientKind": "git",
    "useIgnoreFile": true
  },
  "files": {
    "ignoreUnknown": false,
    "ignore": ["dist", "build", "node_modules", ".next", "coverage"]
  },
  "formatter": {
    "enabled": true,
    "indentStyle": "space",
    "indentWidth": 2,
    "lineWidth": 100
  },
  "linter": {
    "enabled": true,
    "rules": {
      "recommended": true
    }
  },
  "organizeImports": {
    "enabled": true
  }
}

Rule Categories

CategoryPurposeExample Rules
recommendedEssential rules everyone should enableMost rules marked "recommended"
correctnessPrevent bugs and logic errorsnoUnusedVariables, noUnreachable
suspiciousDetect code that might be wrongnoExplicitAny, noDoubleEquals
styleEnforce consistent styleuseConst, noVar
complexityReduce code complexitynoForEach, useFlatMap
performanceOptimize performancenoAccumulatingSpread
a11yAccessibility best practicesnoSvgWithoutTitle, useAltText
securitySecurity vulnerabilitiesnoDangerouslySetInnerHtml

Common Patterns

Ignore Files and Directories

Via biome.json:

{
  "files": {
    "ignore": [
      "dist",
      "build",
      "node_modules",
      "**/*.config.js",
      "scripts/legacy/**"
    ]
  }
}

Via .gitignore (automatic):

{
  "vcs": {
    "enabled": true,
    "useIgnoreFile": true
  }
}

Scope a run to changed files

Both scopes need VCS integration ("vcs": { "enabled": true, "clientKind": "git" }).

ScopeCommandNotes
Staged files only (pre-commit)bunx biome check --staged --reporter=githubNot available on biome ci
Committed changes vs a basebunx biome check --changed --since=main --reporter=github--since overrides vcs.defaultBranch; without it, set defaultBranch

--changed compares committed changes only (staged and unstaged edits are excluded), and it does not follow imports: a changed exported type can break a file that is not in the diff. Run a full biome check before merging when exports change.

For an agent reading the output, combine a scope with --reporter=github (one file:line:col line per diagnostic), --diagnostic-level=error, and --max-diagnostics=N.

Performance Comparison

ToolTime (1000 files)Notes
Biome0.5sRust, parallel processing
ESLint8-10sNode.js, single-threaded
Prettier3-5sNode.js, formatting only
ESLint + Prettier11-15sSequential execution

Agentic Optimizations

ContextCommand
Quick checkbunx biome check src/
Fix allbunx biome check --write src/
Format onlybunx biome format --write src/
Lint onlybunx biome lint --write src/
CI modebunx biome ci src/
Errors onlybunx biome check --diagnostic-level=error src/
Limited outputbunx biome check --max-diagnostics=10 src/
GitHub reporterbunx biome check --reporter=github src/
Staged files onlybunx biome check --staged --reporter=github
Changed vs mainbunx biome check --changed --since=main --reporter=github
JSON outputbunx biome check --reporter=json src/
Migrate ESLintbunx biome migrate eslint --write
Migrate Prettierbunx biome migrate prettier --write

Quick Reference

FlagDescription
--writeApply fixes/formatting
--reporter=githubGitHub annotations format
--reporter=jsonJSON output
--diagnostic-level=errorErrors only
--max-diagnostics=NLimit output count
--verboseShow detailed diagnostics
--no-errors-on-unmatchedIgnore unmatched files
ciCI mode (check + exit code)

For detailed examples, advanced patterns, and best practices, see REFERENCE.md.

References

Readme

TypeScript Plugin

TypeScript development for Claude Code - strict types, ESLint, Biome, Bun runtime, and dead code detection.

Overview

TypeScript development support with modern tooling: strict type configuration, ESLint/Biome for linting, Bun for fast runtime/testing/bundling, and Knip for dead code detection.

Skills

SkillDescription
typescript-strictStrict TypeScript configuration and patterns
typescript-debuggingDebugging with Bun inspector, VSCode, memory profiling
typescript-sentryError monitoring and performance tracking with Sentry
typescript-temporalDates and times with the Temporal API instead of Date
biome-toolingBiome linter and formatter
bun-package-managerFast package management with Bun
bun-developmentBun runtime, testing, and bundling
bun-publishingPublish packages to npm with Bun build
knip-dead-codeDetect dead code in TypeScript/JavaScript projects

Agents

AgentDescription
typescript-developmentTypeScript-specific development tasks
javascript-developmentJavaScript/Node.js development tasks

Usage Examples

Strict TypeScript Config

{
  "compilerOptions": {
    "strict": true,
    "noUncheckedIndexedAccess": true,
    "noImplicitOverride": true
  }
}

Biome Setup

biome init
biome check .
biome format . --write

Bun Commands

/bun:install           # Install dependencies
/bun:add lodash        # Add package
/bun:test              # Run tests with compact output
/bun:build ./src/index.ts  # Bundle for production
/bun:debug script.ts   # Debug with inspector
/bun:debug --brk app.ts # Break at first line
/bun:outdated          # Check for updates
/bun:publish           # Publish to npm
/bun:publish --dry-run # Preview publish

Debugging

# Debug with web inspector
bun --inspect script.ts

# Break at first line
bun --inspect-brk script.ts

# Debug tests
bun --inspect-brk test

# Memory profiling
bun -e "import{heapStats}from'bun:jsc';console.log(heapStats())"

# Network request debugging
BUN_CONFIG_VERBOSE_FETCH=curl bun script.ts

Sentry Error Monitoring

import * as Sentry from "@sentry/bun";

// Initialize (in instrument.ts)
Sentry.init({
  dsn: process.env.SENTRY_DSN,
  tracesSampleRate: 0.1,
});

// Capture errors
Sentry.captureException(error, {
  tags: { feature: "checkout" },
});

// Performance spans
await Sentry.startSpan({ op: "db.query", name: "Fetch users" }, async () => {
  return db.query("SELECT * FROM users");
});

// Cron monitoring
Sentry.withMonitor("daily-cleanup", () => cleanupOldRecords());

Dead Code Detection

knip

Companion Plugins

Works well with:

  • testing-plugin - For vitest patterns
  • code-quality-plugin - For code review

Installation

/plugin install typescript-plugin@laurigates-claude-plugins

License

MIT

Details

Marketplace
laurigates/claude-plugins
Source
typescript-plugin
Author
Lauri Gates
Category
Language
License
MIT
Keywords
typescript, eslint, biome, types
Listed since
Apr 7, 2026

Questions

What does the typescript-plugin add to Claude Code?

It adds skills for strict TypeScript configuration, Biome linting and formatting, Bun runtime, testing and bundling, Knip dead code detection, Sentry error monitoring and the Temporal API. It also provides typescript-development and javascript-development agents, plus Bun slash commands such as /bun:test and /bun:build.

How do I install the typescript-plugin?

Run /plugin marketplace add laurigates/claude-plugins inside Claude Code, then run /plugin install typescript-plugin@laurigates-claude-plugins. This installs the TypeScript skills, agents and Bun commands into your session.

Where does typescript-plugin rank in the Developer Tools category?

typescript-plugin is listed in the Developer Tools category on Claude Marketplaces, alongside n8n, understand-anything, ruflo-cost-tracker, ruflo-iot-cognitum and ruflo-metaharness. It focuses on TypeScript work with strict types, ESLint, Biome and Bun.

Can typescript-plugin help me debug TypeScript code with Bun?

Yes, its typescript-debugging skill and Bun commands cover this. The README shows /bun:debug for running with the inspector, and bun --inspect-brk to break at the first line or to debug tests.

More from laurigates/claude-plugins

All 52

Similar to typescript-plugin

More Developer Tools