File tree Expand file tree Collapse file tree
packages/typescript-estree/src/create-program Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import debug from 'debug' ;
22import path from 'path' ;
3- import ts from 'typescript' ;
3+ import * as ts from 'typescript' ; // leave this as * as ts so people using util package don't need syntheticDefaultImports
44import { Extra } from '../parser-options' ;
55import {
66 getTsconfigPath ,
Original file line number Diff line number Diff line change 11import debug from 'debug' ;
2- import ts from 'typescript' ;
2+ import * as ts from 'typescript' ; // leave this as * as ts so people using util package don't need syntheticDefaultImports
33import { Extra } from '../parser-options' ;
44import { ASTAndProgram , DEFAULT_COMPILER_OPTIONS } from './shared' ;
55
Original file line number Diff line number Diff line change 11import debug from 'debug' ;
2- import ts from 'typescript' ;
2+ import * as ts from 'typescript' ; // leave this as * as ts so people using util package don't need syntheticDefaultImports
33import { Extra } from '../parser-options' ;
44
55const log = debug ( 'typescript-eslint:typescript-estree:createIsolatedProgram' ) ;
Original file line number Diff line number Diff line change 11import debug from 'debug' ;
22import fs from 'fs' ;
33import path from 'path' ;
4- import ts from 'typescript' ;
4+ import * as ts from 'typescript' ; // leave this as * as ts so people using util package don't need syntheticDefaultImports
55import { Extra } from '../parser-options' ;
66import { WatchCompilerHostOfConfigFile } from './WatchCompilerHostOfConfigFile' ;
77import {
Original file line number Diff line number Diff line change 11import path from 'path' ;
2- import ts from 'typescript' ;
2+ import * as ts from 'typescript' ; // leave this as * as ts so people using util package don't need syntheticDefaultImports
33import { Extra } from '../parser-options' ;
44
55interface ASTAndProgram {
You can’t perform that action at this time.
0 commit comments