@@ -24,7 +24,7 @@ let ts;
24
24
const log = debug ( 'eslint-plugin-import:ExportMap' ) ;
25
25
26
26
const exportCache = new Map ( ) ;
27
- const tsConfigCache = new Map ( ) ;
27
+ const tsconfigCache = new Map ( ) ;
28
28
29
29
export default class ExportMap {
30
30
constructor ( path ) {
@@ -549,20 +549,20 @@ ExportMap.parse = function (path, content, context) {
549
549
const source = makeSourceCode ( content , ast ) ;
550
550
551
551
function readTsConfig ( context ) {
552
- const tsConfigInfo = tsConfigLoader ( {
552
+ const tsconfigInfo = tsConfigLoader ( {
553
553
cwd : context . parserOptions && context . parserOptions . tsconfigRootDir || process . cwd ( ) ,
554
554
getEnv : ( key ) => process . env [ key ] ,
555
555
} ) ;
556
556
try {
557
- if ( tsConfigInfo . tsConfigPath !== undefined ) {
557
+ if ( tsconfigInfo . tsConfigPath !== undefined ) {
558
558
// Projects not using TypeScript won't have `typescript` installed.
559
559
if ( ! ts ) { ts = require ( 'typescript' ) ; } // eslint-disable-line import/no-extraneous-dependencies
560
560
561
- const configFile = ts . readConfigFile ( tsConfigInfo . tsConfigPath , ts . sys . readFile ) ;
561
+ const configFile = ts . readConfigFile ( tsconfigInfo . tsConfigPath , ts . sys . readFile ) ;
562
562
return ts . parseJsonConfigFileContent (
563
563
configFile . config ,
564
564
ts . sys ,
565
- dirname ( tsConfigInfo . tsConfigPath ) ,
565
+ dirname ( tsconfigInfo . tsConfigPath ) ,
566
566
) ;
567
567
}
568
568
} catch ( e ) {
@@ -576,10 +576,10 @@ ExportMap.parse = function (path, content, context) {
576
576
const cacheKey = hashObject ( {
577
577
tsconfigRootDir : context . parserOptions && context . parserOptions . tsconfigRootDir ,
578
578
} ) . digest ( 'hex' ) ;
579
- let tsConfig = tsConfigCache . get ( cacheKey ) ;
579
+ let tsConfig = tsconfigCache . get ( cacheKey ) ;
580
580
if ( typeof tsConfig === 'undefined' ) {
581
581
tsConfig = readTsConfig ( context ) ;
582
- tsConfigCache . set ( cacheKey , tsConfig ) ;
582
+ tsconfigCache . set ( cacheKey , tsConfig ) ;
583
583
}
584
584
585
585
return tsConfig && tsConfig . options ? tsConfig . options . esModuleInterop : false ;
0 commit comments