Skip to content

Latest commit

 

History

History
43 lines (31 loc) · 518 Bytes

ts-config-declaration.md

File metadata and controls

43 lines (31 loc) · 518 Bytes

ts-config-declaration

Requires compilerOptions.declaration in tsconfig.json to be set to true.

This rule is fixable using the --fix option.

Examples

Good

{
  "compilerOptions": {
    "declaration": true
  }
}

Bad

{
  "compilerOptions": {
    "declaration": false
  }
}
{
  "compilerOptions": {}
}
{}

When to turn off

Only if the rule breaks.