Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

是否可以考虑添加 .vscode 文件夹 #110

Open
Debbl opened this issue Jan 26, 2025 · 1 comment
Open

是否可以考虑添加 .vscode 文件夹 #110

Debbl opened this issue Jan 26, 2025 · 1 comment

Comments

@Debbl
Copy link
Contributor

Debbl commented Jan 26, 2025

在项目中添加 .vscode 文件夹,目的

  • settings.json 同步一些基础的 vscode 配置如

    • ESLint 格式化规则
  • extensions.json 同步 vscode 插件

@ourai
Copy link
Member

ourai commented Jan 27, 2025

作为大型协作开源项目,原则上:

  1. 与项目本身运行和质量把控不强相关的,不限制开发者用什么工具开发及运行本项目,不强制开发者要用什么样的配置;
  2. 不在项目中增加非必需代码和文件,让项目总体积尽可能地小。

每增加一个依赖或配置,就相当于告诉开发者「你要遵守这个规则/限制」。

所以,你提到的事情,若非项目需要依赖它才能正常运行,不考虑作为代码和文件加入到项目中,但可以作为「推荐」和「建议」在文档中提及。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants