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.