Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to use non-relative paths #30

Open
pablonete opened this issue Nov 4, 2016 · 1 comment
Open

Option to use non-relative paths #30

pablonete opened this issue Nov 4, 2016 · 1 comment

Comments

@pablonete
Copy link

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.

@horacehylee
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants