运算符前后要求有空格。
规则配置
// code-linter.json5
{
"rules": {
"@typescript-eslint/space-infix-ops": "error"
}
} 正例
declare const a: number;
declare const b: number;
export const c = a + b;
反例
declare const a: number;
declare const b: number;
export const c = a+b;