Skip to content

[import/default] typescript - esModuleInterop value not read correctly #1908

@Ebooth

Description

@Ebooth

The following PR was created to detect the esModuleInterop parameter in tsconfig.json. 0b585a1

It seems that the tsconfig.json file is loaded like a text file. So any extended configuration provided in the "extends" parameter of the tsconfig.json file won't be detected.

Expected:
I can set the esModuleInterop value in a tsconfig.base.json that will be extended by tsconfig.json and the rule import/default will work

Here you can find a reproduction of the bug:
https://github.com/Ebooth/eslint-plugin-import-esModuleInterop-bug

Also it could be nice to add support for monorepo as the current code works only in you have one typescript project.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions