Require linebreaks to be placed after the operator. This rule only checks .ets files.
export function test(n1: number, n2: number): void {
if (n1 > n2) {
console.info('hello');
}
if (n1 >
n2) {
console.info('hello');
}
} export function test(n1: number, n2: number, n3: number): void {
if (n1 > n2
// '||' should be placed at the end of the line.
|| n1 < n3) {
console.info('hello');
}
} "plugin:@hw-stylistic/recommended" "plugin:@hw-stylistic/all"
For details about how to configure Code Linter check rules, see Code Linter.