TypeScript Compiler Options
plugins — TypeScript configuration
Active language-service plugin configuration. The name is an illustrative placeholder, not a package recommendation or an installed dependency. A compatible editor/language server must load the actual plugin. The ordinary tsc invocation does not install or activate it for compiler checking. Tests verify parsed configuration and ordinary compilation with a placeholder name; editor plugin execution is not tested. Baseline: TypeScript 5.8.3. File labels are explanatory, not source text.
Formal Syntax & Structure
typescript syntaxtypescript
"plugins": [{"name": "example-language-service-plugin"}]Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| plugins | Array<{ name: string }> | Optional configuration setting; see description for scope and limitations. |
Working Example
Example Snippettypescript
// File: tsconfig.json (omit this label){ "compilerOptions": { "target": "ES2022", "module": "CommonJS", "strict": true, "types": [], "skipLibCheck": true, "outDir": "dist", "noEmitOnError": true, "plugins": [ { "name": "example-language-service-plugin" } ] }, "files": [ "index.ts" ]}// File: index.ts (omit this label)export const count: number = 7;// Run in a temporary project:// tsc -p . --showConfig