createWatchProgram has import ts from 'typescript' which requires esModuleInterop: 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:
import * as ts from 'typescript'
// or
import ts = require('typescript')
Typescript's nightly user test suite exposed this problem, because it compiles prettier with allowJs/checkJs on, but not esModuleInterop.
createWatchProgram has
import ts from 'typescript'which requiresesModuleInterop: truein 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.