File tree 5 files changed +5
-5
lines changed
packages/typescript-estree/src/create-program
5 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
import debug from 'debug' ;
2
2
import 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
4
4
import { Extra } from '../parser-options' ;
5
5
import {
6
6
getTsconfigPath ,
Original file line number Diff line number Diff line change 1
1
import 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
3
3
import { Extra } from '../parser-options' ;
4
4
import { ASTAndProgram , DEFAULT_COMPILER_OPTIONS } from './shared' ;
5
5
Original file line number Diff line number Diff line change 1
1
import 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
3
3
import { Extra } from '../parser-options' ;
4
4
5
5
const log = debug ( 'typescript-eslint:typescript-estree:createIsolatedProgram' ) ;
Original file line number Diff line number Diff line change 1
1
import debug from 'debug' ;
2
2
import fs from 'fs' ;
3
3
import 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
5
5
import { Extra } from '../parser-options' ;
6
6
import { WatchCompilerHostOfConfigFile } from './WatchCompilerHostOfConfigFile' ;
7
7
import {
Original file line number Diff line number Diff line change 1
1
import 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
3
3
import { Extra } from '../parser-options' ;
4
4
5
5
interface ASTAndProgram {
You can’t perform that action at this time.
0 commit comments