强制数组“[”之后和“]”之前不加空格。该规则仅检查.ets文件类型。
// 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代码检查。