Please include option not to auto-self-close empty nodes
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 35/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- javascript
- 领域
- tooling
调研方向
首先定位插件中将空的成对元素转换为自闭合元素的 XML 格式化路径。然后使用 issue 中的 searchLayouts 示例定义预期行为,并确定布尔选项应在哪里配置和测试。完成的标准是该选项保留 ,同时现有的清理行为默认保持不变。
由索引模型根据 Issue 内容生成。
描述
There are some situations (Salesforce metadata) where the metadata should not self-close:
This is the desired XML:
<searchLayouts></searchLayouts>
but the plugin auto-closes it to
<searchLayouts/>
I realize that maybe this isn't a best practice, but it is causing a ton of changes in our VCS that we'd rather not have to deal with, and it clutters IDEs until the commit is cleaned with Husky and Prettier.
Could we please have a boolean to prevent this kind of cleanup?
- 主要语言
- JavaScript
- 星标
- 278
- 派生
- 46
- 平均合并
- 1 分钟
- 30 天内合并 PR
- 15
环境准备
我们还没有检查这个项目的环境配置文件。先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
prettier/plugin-xml 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 58/100
prettier/plugin-xml#996 ·
-
难度 3/5 1-2 天 新手友好度 58/100
prettier/plugin-xml#995 ·
-
难度 3/5 1-2 天 新手友好度 45/100
prettier/plugin-xml#986 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 55/100
prettier/plugin-xml#981 ·
-
难度 5/5 一周以上 新手友好度 35/100
prettier/plugin-xml#937 · 1 个 reaction ·
查看 prettier/plugin-xml 的全部 Issue
相似的 Issue
-
Complexity: Small P-Feature: Projects page ready for merge team role: back end/devOps role: front end size: 0.25pt
难度 1/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 67/100
bellingcat/toolkit#905 ·
-
self-care self-care:docs-build-time-investigator
难度 2/5 半天 新手友好度 76/100
githubnext/gh-aw-cao#14191 ·
维护者通常 1 天内回复
-
effort:low impact:medium RAG status: auto-triaged
难度 2/5 1-3 小时 新手友好度 84/100
mastra-ai/mastra#25229 · 2 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 88/100
sugarlabs/musicblocks#8984 ·
维护者通常 1 天内回复