Option to keep spaces before inline comments
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 45/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- typescript
- 领域
- tooling
调研方向
首先阅读现有的 keepLines 选项和关联的 pull request,然后跟踪处理行内注释的 formatter API。以 tsconfig.json 中的示例作为行为参考:启用新选项后,应保留行尾注释前的空格,同时不改变其他格式。
由索引模型根据 Issue 内容生成。
描述
Add a keepSpaces or keepSpacesBeforeLineComments similar too keepLines that preserves the spaces between values and inline comments at the end of the line.
This will help to avoid unnecessary changes when formatting tsconfig.json files:
Original:
/* Language and Environment */
"target": "es2016", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
// "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
Formatted:
/* Language and Environment */
"target": "es2016", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
// "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
Diff:
/* Language and Environment */
- "target": "es2016", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
+ "target": "es2016", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
// "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
- 主要语言
- TypeScript
- 星标
- 759
- 派生
- 66
- 平均合并
- 5 天 10 小时
- 30 天内合并 PR
- 7
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
microsoft/node-jsonc-parser 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 72/100
microsoft/node-jsonc-parser#125 · 1 条评论 ·
-
难度 3/5 1-2 天 新手友好度 45/100
microsoft/node-jsonc-parser#105 ·
-
难度 4/5 3-5 天 新手友好度 45/100
microsoft/node-jsonc-parser#103 · 2 条评论 · 8 个 reaction ·
-
难度 2/5 1-3 小时 新手友好度 48/100
microsoft/node-jsonc-parser#97 · 2 个 reaction ·
-
难度 4/5 3-5 天 新手友好度 35/100
microsoft/node-jsonc-parser#95 · 1 个 reaction ·
查看 microsoft/node-jsonc-parser 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
bug clawsweeper:linked-pr-open clawsweeper:needs-live-repro clawsweeper:no-new-fix-pr impact:message-loss issue-rating: 🐚 platinum hermit P2 regression
难度 2/5 1-3 小时 新手友好度 78/100
-
enhancement
难度 2/5 1-3 小时 新手友好度 68/100
-
calcite-components needs triage refactor
难度 2/5 1-3 小时 新手友好度 75/100
Esri/calcite-design-system#15203 ·
-
难度 2/5 1-3 小时 新手友好度 90/100
danielmiessler/LifeOS#2218 ·