这是indexloc提供的服务,不要输入任何密码
Skip to content
Discussion options

You must be logged in to vote

Root package.json has scripts that rely on eslint and prettier, so they need to be installed in root.

Why eslint and prettier are not installed in /packages/eslint-config-custom

Pnpm allows you to use a package in child workspaces even if it's installed in the root workspace, but not the other way around.

This works fine. However, might be preferable to also add the eslint package a second time to the eslint-config-custom workspace. While this isn't necessary, it could help other tooling identify your dependency graph more accurately. pnpm dedupes them anyway, so there's no harm in installing it in multiple workspaces.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by anthonyshew
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants