Auto-Import
Auto-Import copied to clipboard
Option to remove leading . in path of outer file
Given module foo/a.ts
and bar/b.ts
, if I want to import the latter in the former, this plugin would generate:
import { whatever } from './../bar/b.ts'
I would like the option to remove the leading . in this path
import { whatever } from '../bar/b.ts'
It shouldn't be an option in my opinion, it should be the default. I never saw someone importing a file from a parent directory with ./..
.
#47 does not seem to have fixed it. I am running 1.5.3, and I can still reproduce this issue, and I don't seem to be alone: https://github.com/soates/Auto-Import/pull/47#issuecomment-371547038