EditorConfig support as a "Generic" option for editor setup
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 35/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 冷清
调研方向
首先追踪 VS Code 和 Zed 现有的编辑器设置选项,然后检查 vp fmt 和 vp format 的入口点。将当前的 Oxfmt 配置与所请求的 .editorconfig 行为进行比较,并确定应如何报告或同步冲突。完成标准是已实现并验证 Generic 或 EditorConfig 选项的范围和行为。
由索引模型根据 Issue 内容生成。
描述
Description
EditorConfig is a standard for configuring editors through one file (.editorconfig) instead of multiple (.vscode, .zed, .idea, etc)
A while ago, I suggested on the VoidZero Discord the idea of adding a generic option for editor setup, which would automatically create a .editorconfig file with as many formatting options that overlaps with Oxfmt.
I took a bit of a look at the specification, and admittedly it is quite small, so I'm not sure if this is something the team wants to take on and maintain. I'm willing to help if I can get some help in being pointed in the right direction to implement this.
Suggested solution
Like the image above tries to illustrate, there could be a new "Generic" or "EditorConfig" button that, when applied, creates a .editorconfig file that matches the default/current Oxfmt config (as much as possible).
When vp fmt/vp format is ran, it would check the EditorConfig file and the current Oxfmt file. If relevant configurations conflict from both .editorconfig and the Oxfmt config, there could be a printed warning that states that the configuration is not in sync and to run a command to sync the config? This part might be the fuzziest part of EditorConfig support to be honest.
Alternative
Selecting all the options in the menu, which is currently quite limited (as of writing, only contains VS Code and Zed)
Additional context
No response
Validations
- Read the Contributing Guidelines.
- Confirm this request is for Vite+ itself and not for Vite, Vitest, tsdown, Rolldown, or Oxc.
- Check that there isn't already an issue requesting the same feature.
- 主要语言
- Rust
- 星标
- 6k
- 派生
- 271
- 平均合并
- 1 天 12 小时
- 30 天内合并 PR
- 198
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
voidzero-dev/vite-plus 的其他 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 70/100
voidzero-dev/vite-plus#2970 ·
维护者通常 1 天内回复
-
PowerShell `vp` wrapper hides failures: `$?` is `True` and `&&` keeps going after `vp` fails可能已有人在做 @fengmk2 于 2 天前认领。 未关闭bug pending triage
难度 2/5 1-3 小时 新手友好度 72/100
voidzero-dev/vite-plus#2934 · 2 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Skip the `vpr` hint when the script runs the same built-in可能已有人在做 @kshanxs 于 1 天前认领。 未关闭pending triage
难度 2/5 1-3 小时 新手友好度 85/100
voidzero-dev/vite-plus#2892 · 1 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
-
pending triage
难度 2/5 1-3 小时 新手友好度 72/100
voidzero-dev/vite-plus#2882 · 2 条评论 ·
维护者通常 1 天内回复
-
`lazyPlugins` docs: dynamic import of a local module still slows down config loading可能已有人在做 @kshanxs 于 1 天前认领。 未关闭documentation pending triage
难度 1/5 1 小时以内 新手友好度 78/100
voidzero-dev/vite-plus#2875 · 4 条评论 ·
维护者通常 1 天内回复
查看 voidzero-dev/vite-plus 的全部 Issue
相似的 Issue
-
bug user-priority/P2
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
rescript-lang/rescript#8765 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
nautechsystems/nautilus_trader#5287 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 62/100
farion1231/cc-switch#8072 ·
维护者通常 1 天内回复
-
Python 3.15 support可能已有人在做 @amnesiaof 今天认领。 未关闭L: python L: python:uv
难度 2/5 1-3 小时 新手友好度 72/100
dependabot/dependabot-core#16524 · 1 条评论 ·
维护者通常 1 天内回复