如何从 eslintrc 文件获取 editorconfig 文件?

Huy*_*Huy 5 phpstorm eslint editorconfig

我正在尝试为我的项目制定标准代码样式,并且我找到了http://editorconfig.org/,这是一个标准。我非常喜欢它,Intellij也支持它(我们使用Intellij)。

我有一个 .eslintrc 文件(从airbnb 风格扩展)。

那么,如何从 .eslintrc 文件获取 .editorconfig 文件?

car*_*ant 3

如果您正在寻找.editorconfig配置规则强制执行的样式的文件eslint-config-airbnb,您可以使用.editorconfig该模块存储库中的文件:

https://github.com/airbnb/javascript/blob/master/.editorconfig