【发布时间】:2017-01-13 13:24:26
【问题描述】:
鉴于我有一个 .editorconfig 文件,该文件规定了一致的缩进、行尾、尾随空格等。
# http://editorconfig.org
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
作为一名开发人员,我想使用能够理解 .editorconfig 文件的命令行工具一致地修复所有文件。我想避免繁琐的任务,例如手动打开和更改文件。
我想如果有一个命令,例如:
editorconfix.sh --autofix .
有哪些工具可用于此目的?你用什么脚本?
【问题讨论】:
-
prettier项目中有一个未解决的问题要尊重 .editorconfig:github.com/jlongster/prettier/issues/42
标签: editorconfig