Skip to content

Latest commit

 

History

History
43 lines (31 loc) · 603 Bytes

ts-config-allowsyntheticdefaultimports.md

File metadata and controls

43 lines (31 loc) · 603 Bytes

ts-config-allowsyntheticdefaultimports

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

This rule is fixable using the --fix option.

Examples

Good

{
  "compilerOptions": {
    "allowSyntheticDefaultImports": true
  }
}

Bad

{
  "compilerOptions": {
    "allowSyntheticDefaultImports": false
  }
}
{
  "compilerOptions": {}
}
{}

When to turn off

Only if the rule breaks.