Intelligent Assistant
Chat with our virtual assistant to get answers promptly.
We use essential cookies for the website to function, as well as analytics cookies for analyzing and creating statistics of the website performance. To agree to the use of analytics cookies, click "Accept All". You can manage your preferences at any time by clicking "Cookie Settings" on the footer. More Information.
HarmonyOS
Disallow multiple spaces unless they occur at the end of lines. This rule only checks .ets files.
- // code-linter.json5
- {
- "rules": {
- "@hw-stylistic/no-multi-spaces": "error"
- }
- }
This rule is not configurable.
- export const message: string = 'Hello World';
- // 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"
For details about how to configure Code Linter check rules, see Running Code Linter.
Intelligent Assistant
Chat with our virtual assistant to get answers promptly.
Quick start
Helps you find desired resources with ease.