JS.TS.BRACE.STYLE

Enforce consistent brace style for blocks

Rule Details

This rule extends the base eslint/brace-style (https://eslint.org/docs/rules/brace-style) rule. It adds support for enum, interface, namespace and module declarations.

How to Use

Copy
{
  // note you must disable the base rule as it can report incorrect errors
  "brace-style": "off",
  "@typescript-eslint/brace-style": ["error"]
}

Options

See eslint/brace-style options (https://eslint.org/docs/rules/brace-style#options).

The content on this page is adapted from the ESLint User Guide. Copyright © OpenJS Foundation and other contributors, www.openjsf.org. All rights reserved. https://eslint.org/docs/rules/