Skip to main content

Enforce consistent brace style for blocks (brace-style)

Rule Details

This rule extends the base eslint/brace-style rule. It adds support for enum, interface, namespace and module declarations.

How to use

{
// 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.

Taken with โค๏ธ from ESLint core

Attributes

  • โœ… Recommended
  • ๐Ÿ”ง Fixable
  • ๐Ÿ’ญ Requires type information