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

147
Views
Link to node_modules in sibling directory for code formatters and linters

I'm having a problem using Prettier in a folder which provides components for two project folders. The folder structure looks like this:

frontend
├── admin 
├── common 
└── member

The common dir contains its own .eslintrc and .prettier files and a symlink to the member's node_modules, but not its own package.json or node_modules. When I'm saving a file in common I get the following error:

prettier-atom failed: Cannot find module 'prettier-plugin-jsdoc' from '/'

So obviously the symlink in the common dir over to member's node_modules isn't picked up by Prettier.

I would like to avoid having a node_modules folder in common. Is there a way to configure Prettier/Eslint to search for node_modules other than the default location? There is a way for VSCode to link to subdirectories, but I'm using Atom and I need solution for the whole developer team.

about 4 years ago · Juan Pablo Isaza
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!