Helps create and edit tsconfig.json files using @workleap/typescript-configs shared configs for web apps, libraries, and monorepos. Supports overriding compiler options, setting up path mappings, adding typecheck scripts, Turborepo tasks, and migrating to TypeScript 7.
Ships in wl-web-configs. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
@workleap/typescript-configs provides TypeScript configurations by project type. Focuses on linting only; bundlers handle transpilation.
Target environment: ESM, ESNext
| Config | Use Case |
|---|---|
web-application.json | React web applications |
library.json | Libraries (with or without React) |
monorepo-workspace.json | Monorepo workspace root |
| Config | Description |
|---|---|
core.json | Basic rules shared by all configs |
react.json | React-specific rules |
pnpm add -D @workleap/typescript-configs typescript
pnpm add -D @workleap/typescript-configs typescript turbo
pnpm add -D @workleap/typescript-configs typescript
// tsconfig.json
{
"extends": ["@workleap/typescript-configs/web-application.json"],
"exclude": ["dist", "node_modules"]
}
With Storybook:
{
"extends": ["@workleap/typescript-configs/web-application.json"],
"include": ["**/*", ".storybook/*"],
"exclude": ["dist", "node_modules"]
}
// tsconfig.json
{
"extends": ["@workleap/typescript-configs/library.json"],
"exclude": ["dist", "node_modules"]
}
With Storybook:
{
"extends": ["@workleap/typescript-configs/library.json"],
"include": ["**/*", ".storybook/*"],
"exclude": ["dist", "node_modules", ".storybook/storybook-static"]
}
// tsconfig.json
{
"extends": "@workleap/typescript-configs/monorepo-workspace.json",
"exclude": ["packages", "node_modules"]
}
With Storybook:
{
"extends": "@workleap/typescript-configs/monorepo-workspace.json",
"include": ["**/*", ".storybook/*"],
"exclude": ["packages", "node_modules", ".storybook/storybook-static"]
}
{
"extends": ["@workleap/typescript-configs/web-application.json"],
"compilerOptions": {
"strict": false
},
"exclude": ["dist", "node_modules"]
}
To allow imports without file extensions during migration:
{
"extends": ["@workleap/typescript-configs/web-application.json"],
"compilerOptions": {
"moduleResolution": "Bundler",
"module": "ESNext"
},
"exclude": ["dist", "node_modules"]
}
For projects referencing other workspace packages without JIT packages:
// packages/pkg-1/tsconfig.json
{
"extends": "@workleap/typescript-configs/web-application.json",
"compilerOptions": {
"paths": {
"@sample/components": ["../components/index.ts"],
"@sample/utils": ["../utils/index.ts"]
}
},
"exclude": ["dist", "node_modules"]
}
For React projects needing custom setup:
{
"extends": "@workleap/typescript-configs/react",
"compilerOptions": { /* custom options */ },
"exclude": ["dist", "node_modules"]
}
For non-React projects:
{
"extends": "@workleap/typescript-configs/core",
"compilerOptions": { /* custom options */ },
"exclude": ["dist", "node_modules"]
}
{
"lint:types": "tsc"
}
{
"lint": "turbo run lint --continue",
"typecheck": "tsc"
}
{
"typecheck": "tsc"
}
// turbo.json
{
"$schema": "https://turbo.build/schema.json",
"ui": "tui",
"tasks": {
"lint": { "dependsOn": ["typecheck"] },
"//#typecheck": { "outputs": ["node_modules/.cache/tsbuildinfo.json"] },
"typecheck": { "outputs": ["node_modules/.cache/tsbuildinfo.json"] }
}
}
tsgo / @typescript/native-preview, removed compiler options and VS Codetsc to emit build outputmodule / moduleResolution as a temporary migration stepmonorepo-workspace.json belongs only at a monorepo workspace rootWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
/wl-web-configs:workleap-typescript-configsfrom wl-web-configs
npx claudepluginhub workleap/wl-web-configs --plugin wl-web-configs10 skills in this plugin
/workleap-browserslist-configWorkleap's shared Browserslist config (`@workleap/browserslist-config`). Use when adding or customizing a `.browserslistrc` in a project that uses `@workleap/browserslist-config`, adding custom browser targets, listing the supported browser versions, or deciding whether a project (application vs library) should include Browserslist at all.
/workleap-chromatic-best-practicesWorkleap's Chromatic best practices for snapshot cost control and CI optimization. Use when auditing, setting up, or fixing Chromatic configurations — including TurboSnap-disabling patterns, CI workflows, chromatic.config.json, and monorepo setups. Also activate when reviewing PRs that touch Storybook or Chromatic-related files.
/workleap-react-best-practicesReact performance optimization guidelines for Single Page Applications (SPA) at Workleap. Use when writing, reviewing, or refactoring React SPA code. Covers async waterfall elimination, bundle size reduction, re-render optimization, rendering efficiency, JS micro-optimizations, and advanced patterns. Activate even for small component changes — performance regressions compound silently. Does not cover SSR, Next.js, or server components./workleap-rsbuild-configsWorkleap's shared Rsbuild configs for web applications (`@workleap/rsbuild-configs`): `defineDevConfig`, `defineBuildConfig`, `defineStorybookConfig`, and `RsbuildConfigTransformer`. Use when setting up, customizing, or troubleshooting the dev server, production build, or Storybook of a web application that uses `@workleap/rsbuild-configs`, adding SVG / CSS Modules type declarations, configuring Turborepo tasks, upgrading to Rsbuild 2, or migrating an application from `@workleap/webpack-configs`.
/workleap-rslib-configsWorkleap's shared Rslib configs for libraries (`@workleap/rslib-configs`): `defineBuildConfig`, `defineDevConfig`, `defineStorybookConfig`, and `RslibConfigTransformer`. Use when setting up, customizing, or troubleshooting the build, watch mode, or Storybook of a library that uses `@workleap/rslib-configs`, choosing bundleless vs bundle output, configuring `tsconfig.build.json` or type declarations, upgrading to Rslib 2, or migrating a library from `@workleap/tsup-configs`.
/workleap-skill-optimizerOptimize agent skills to reduce context bloat while preserving answer coverage. Use when a skill's body exceeds ~250 lines, duplicates its references, has a verbose description, or triggers false positives. Also activate proactively when reviewing any skill with both a body and reference files.