Skip to content

Commit

Permalink
fix: prettier vs code plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
guoyunhe committed Apr 10, 2024
1 parent 302d66c commit 1be1554
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/prettier-config-ali/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ const config = {
endOfLine: 'lf',
// 从 Prettier 3.x 开始,插件必须配置才能生效
plugins: [
// VS Code 的 Prettier 插件目前有问题,不支持 import.meta.resolve
// 排序 package.json 中的属性
import.meta.resolve('prettier-plugin-packagejson'),
// import.meta.resolve('prettier-plugin-packagejson'),
],
};

Expand Down
2 changes: 1 addition & 1 deletion packages/prettier-config-ali/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "prettier-config-ali",
"version": "1.3.1",
"version": "1.3.2",
"description": "Prettier shareable configuration for Alibaba F2E Guidelines",
"keywords": [
"prettier",
Expand Down

0 comments on commit 1be1554

Please sign in to comment.