jscs validateIndentation with spaces .editorconfig

Whi*_*her 4 jscs

有了这个.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
Run Code Online (Sandbox Code Playgroud)

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

"validateIndentation": "\t",
Run Code Online (Sandbox Code Playgroud)

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

Nic*_*ett 5

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

"validateIndentation": 4,

文档的相关摘录:

validateIndentation

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

类型:Integer,StringObject

价值观:

Integer:正数空格