【问题标题】:should i ignore the .editorconfig file while laravel 8 project deployement我应该在 laravel 8 项目部署时忽略 .editorconfig 文件吗
【发布时间】:2021-06-17 07:39:20
【问题描述】:

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

.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

新手编码员

【问题讨论】:

    标签: laravel deployment editorconfig


    【解决方案1】:

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

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

    【讨论】:

      猜你喜欢
      • 2011-12-23
      • 2019-01-10
      • 2016-06-07
      • 1970-01-01
      • 1970-01-01
      • 2017-11-23
      • 2019-12-09
      • 2011-03-09
      • 2015-07-30
      相关资源
      最近更新 更多