-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Labels
area:apiIssues with Prettier's Application Programming InterfaceIssues with Prettier's Application Programming Interfacearea:plugin apilocked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.Please open a new issue and fill out the template instead of commenting.
Description
Environments:
- Prettier Version: 2.0.4
- Running Prettier via: VSCode, CLI
- Runtime: Node 12.16.2
- Operating System: OS X
Steps to reproduce:
- Use
npm
to install prettier-plugin-organize-imports - Run
prettier foo.txs
- Observe that imports are correctly organized
This time, use pnpm
which uses symlinks instead of copying packages to node_modules
:
- Use
pnpm
to install prettier-plugin-organize-imports - Run
prettier foo.tsx
from the command line - Observe that imports are NOT organized
Now, add the plugin explicitly to package.json
:
"prettier": {
"plugins": [
"./node_modules/prettier-plugin-organize-imports"
]
}
Repeat step 2 above and observe that plugins are now organized.
Expected behavior:
Symlink'd plugins in node_modules
are auto detected.
Actual behavior:
Symlink'd plugins in node_modules
are not auto detected.
maxmilton, Newbie012, muuvmuuv, jgierer12, 0xthk and 1 moredragon-fish and uxtechie
Metadata
Metadata
Assignees
Labels
area:apiIssues with Prettier's Application Programming InterfaceIssues with Prettier's Application Programming Interfacearea:plugin apilocked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.Please open a new issue and fill out the template instead of commenting.