shortest import path with eslint + tsconfig.json paths
Is there any way to configure eslint (I am using
eslint-plugin-import
+ eslint-import-resolver-typescript
as well) to use the shortest import between my "absolute" path configured in my tsconfig, and just the relative path? For example if I have "src/*": ["./src/*"]
defined in my paths, I want the linter to pick src/components/myComponent/MyComponent
over ../../../components/myComponent/MyComponent
, but pick ./MyComponent
over src/components/myComponent/MyComponent
. Thx0 Replies