Enforce consistent spacing before and after commas (,).
// By default, a space is required after a comma and not before it.
export const arr1 = ['1', '2'];
export const arr2 = ['1',, '3'];
function qur(a: string, b: string) {
return `${a}${b}`;
}
qur('1', '2'); // By default, a space is required after a comma and not before it.
export const arr = ['1' , '2'];
function qur(a: string ,b: string) {
return `${a}${b}`;
}
qur('1' ,'2'); plugin:@typescript-eslint/all
For details about how to configure Code Linter check rules, see Code Linter.