目录

@typescript-eslint/space-infix-ops

Require spaces around operators.

Rule Configuration

// code-linter.json5
{
  "rules": {
    "@typescript-eslint/space-infix-ops": "error"
  }
}

Options

For details, see @typescript-eslint/space-infix-ops.

Example of Correct Code

declare const a: number;
declare const b: number;
export const c = a + b;

Example of Incorrect Code

declare const a: number;
declare const b: number;
export const c = a+b;

Rule Set

plugin:@typescript-eslint/all

For details about how to configure Code Linter check rules, see Code Linter.