Skip to content

projectPaths cwd and getTsconfig helper (performance issue) #321

Closed
@romanlex

Description

@romanlex

Anybody who can explain why inside this resolver used getTsconfig function for project config option instead of tsconfig nearest of source file

https://github.com/import-js/eslint-import-resolver-typescript/blob/master/src/index.ts#L366

For example monorepo has meny packages
Settings of import resolver is
Image

Now we get multiple project paths
Image

If I use eslintrc config inside packages with root directive I don't need to know anything about the rest of the tsconfig in the another project.

All this paths participate in calculations every time but all what we need its resolve import path inside only one package.

Why we cant use getTsconfig only for current file?
It would be much faster

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions