Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

151
Views
Configure emacs to import using relative paths by default

I'm using emacs doom. When editing .ts typescript file, emacs can automatically import module but emacs import using absolut path

ex:

import { GetUser } from 'src/auth/decorator';

what I want is import using relative path not absolute. so What I want is

import { GetUser} from '../auth/decorator';

Why I want this? because end to end test with jest failed my test if im import module using absolute path.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

If you are using Tide you can change the user preferences for module imports like this:

  (setq-default tide-user-preferences '(:importModuleSpecifierPreference "relative" :includeCompletionsForModuleExports t :includeCompletionsWithInsertText t :allowTextChangesInNewFiles t))

(requires restart of Emacs Doom)

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!