chore: public-hoist-pattern prettier config (#3954)

* chore: public-hoist-pattern prettier config

* docs: add changesets

Co-authored-by: Zoltan Kochan <z@kochan.io>
This commit is contained in:
傅鹏
2022-04-02 04:21:18 +08:00
committed by GitHub
parent 8fa95fd868
commit 8dac029ef6
2 changed files with 7 additions and 2 deletions

View File

@@ -0,0 +1,6 @@
---
"@pnpm/config": minor
"pnpm": minor
---
Any package with "prettier" in its name is hoisted.

View File

@@ -190,8 +190,7 @@ export default async (
'prefer-workspace-packages': false,
'public-hoist-pattern': [
'*eslint*',
'@prettier/plugin-*',
'*prettier-plugin-*',
'*prettier*',
],
'recursive-install': true,
registry: npmDefaults.registry,