【问题标题】:jscs validateIndentation with spaces .editorconfigjscs validateIndentation 带空格 .editorconfig
【发布时间】:2015-08-10 12:20:15
【问题描述】:

拥有这个 .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

.jscsrc 的语法是什么 我知道标签就像

"validateIndentation": "\t",

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

【问题讨论】:

    标签: jscs


    【解决方案1】:

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

    "validateIndentation": 4,

    来自the docs的相关摘录:

    验证缩进

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

    类型:IntegerStringObject

    价值观:

    Integer: 正数空格

    【讨论】:

      猜你喜欢
      • 2020-10-21
      • 2021-06-21
      • 2017-02-22
      • 1970-01-01
      • 2016-03-15
      • 1970-01-01
      • 2019-03-06
      • 2022-07-06
      • 2015-12-14
      相关资源
      最近更新 更多