Auto-Import
Auto-Import copied to clipboard
Option to use non-relative paths
Auto-Import always generate a relative path, like:
import { b } from "./moduleB"
Instead, I'd need to use non-relative paths, like:
import { b } from "root/src/moduleB"
It would just use the root of the tsconfig.json file, and eventually could use other roots defined in rootDirs
.
Rationale: avoiding relative paths is an opinionated good practice and a coding standard in many code bases.
+1