Open
Description
Hello!
I can't find a way to enforce import order to internal / parent using aliases. Maybe it is just not possible.
Example:
--- src
|--- folderA
|--- fileA1.ts
|--- fileA2.ts
|--- folderB
|--- folderC
|--- fileC1.ts
|--- fileB1.ts
|--- fileB2.ts
Set an alias in my tsconfig.json
{
"compilerOptions": {
...
"baseUrl": "./",
"paths": {
"@src/*": ["src/*"],
}
}
}
In fileC1.ts
import { foo } from '@src/folderA/fileA1'
import { bar } from '@src/folderB/fileB1'
I would really love to be able to enforce the import from B
(parent) to happen after import A
(internal) but I'm not sure it is possible since I believe that alias
would "hide" it.
Thanks in advance!