我应该在 laravel 8 项目部署时忽略 .editorconfig 文件吗

should i ignore the .editorconfig file while laravel 8 project deployement

一个是 .editorconfig 文件,另一个是 .ignore 文件,告诉我,我是否应该包含它,其他文件将被忽略,如下所示。

.忽略文件

/public/hot
/public/storage
/storage/*.key
/vendor
.env
.env.backup
.phpunit.result.cache
docker-compose.override.yml
Homestead.json
Homestead.yaml
npm-debug.log
yarn-error.log
/.idea
/.phpIntel
/.vscode

.editorconfig

.editorConfig 文件

root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 4
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false

[*.{yml,yaml}]
indent_size = 2

编码新手

.editorconfig 文件用于在与多个团队成员一起工作时保持编码环境的一致性。它可以帮助您保持所有代码的格式相同。

所以根据我的观点,如果您正在与多个开发人员合作,那么您不应该忽略它,否则您可以忽略它。