mrseanryan / tslint-folders

:file_folder: Use tslint to check for invalid imports between packages and folders in your TypeScript project. Automatic validation and documentation of package architecture.
MIT License
9 stars 1 forks source link

Add support for paths configured in tsconfig.json #15

Closed mrseanryan closed 4 years ago

mrseanryan commented 4 years ago

Paths can be configured in tsconfig.json.

This can help to disambiguate a folder setup like this:

my-editor/src/
my-editor/api/

tsconfig.json:

    "baseUrl": ".",
    "paths": {
        "my-editor": ["my-editor/src"],
        "my-editor-api": ["my-editor/api"],

Otherwise, tslint-folders will treat imports from both my-editor and my-editor-api as my-editor


dev note:

try using tsconfig-paths

as used in ts-unused-exports

mrseanryan commented 4 years ago

fixed! - version 4