不允许出现连续多个空格,除非是换行。该规则仅检查.ets文件类型。
// Multiple spaces found before 'message'. // Multiple spaces found before 'string'. // Multiple spaces found before '='. // Multiple spaces found before 'Hello World'. export const message: string = 'Hello World';
"plugin:@hw-stylistic/recommended" "plugin:@hw-stylistic/all"
Code Linter代码检查规则的配置指导请参考Code Linter代码检查。