Auto-Import icon indicating copy to clipboard operation
Auto-Import copied to clipboard

Option to use non-relative paths

Open pablonete opened this issue 8 years ago • 1 comments

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.

pablonete avatar Nov 04 '16 23:11 pablonete

+1

horacehylee avatar Aug 12 '17 06:08 horacehylee