合作咨询
我们的专家服务团队将竭诚为您提供专业的合作咨询服务
强制数组“[”之后和“]”之前加空格。该规则仅检查.ets文件类型。
// code-linter.json5
{
"rules": {
"@hw-stylistic/array-bracket-spacing": "error"
}
} 该规则无需配置额外选项。
export const arr = ['a', 'b'];
// There should be no space after '['. // There should be no space before ']'. export const arr = [ 'a', 'b' ];
"plugin:@hw-stylistic/recommended" "plugin:@hw-stylistic/all"
Code Linter代码检查规则的配置指导请参考代码Code Linter检查。
合作咨询
我们的专家服务团队将竭诚为您提供专业的合作咨询服务
解决方案
精准高效的一站式服务支持,助力开发者商业成功