Enforce no spaces inside array brackets. This rule only checks .ets files.
// code-linter.json5
{
"rules": {
"@hw-stylistic/array-bracket-spacing": "error"
}
} // 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"
For details about how to configure Code Linter check rules, see Code Linter.