4

有这个.editorconfig:

# editorconfig.org
root = true

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

[*.md]
trim_trailing_whitespace = false

我知道 tab 的 .jscsrc 的语法是什么

"validateIndentation": "\t",

但是 4 个空格的语法是什么?

4

1 回答 1

5

空格的语法是只使用一个整数,所以:

"validateIndentation": 4,

文档的相关摘录:

验证缩进

验证 switch 语句和块语句的缩进

类型:Integer,StringObject

价值观:

Integer: 正数的空格

于 2015-08-10T04:20:15.207 回答