Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

155
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda