Default import requires typescript-estree dependents to have esModuleInterop: true in tsconfg #1153
Labels
bug
Something isn't working
has pr
there is a PR raised to close this
package: typescript-estree
Issues related to @typescript-eslint/typescript-estree
createWatchProgram has
import ts from 'typescript'
which requiresesModuleInterop: true
in the tsconfig of any dependent of typescript-estree.Typescript doesn't actually have a default export, but a commonjs one. One of these syntaxes would work:
Typescript's nightly user test suite exposed this problem, because it compiles prettier with allowJs/checkJs on, but not esModuleInterop.
The text was updated successfully, but these errors were encountered: