Requires compilerOptions.module
in tsconfig.json
to be set to "es6"
.
This rule is fixable using the --fix
option.
{
"compilerOptions": {
"module": "es6"
}
}
{
"compilerOptions": {
"module": "es5"
}
}
{
"compilerOptions": {}
}
{}