Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 785 Bytes

File metadata and controls

36 lines (24 loc) · 785 Bytes

brace-style

Enforce consistent brace style for blocks.

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

  • Configs:
    • ✅ Recommended
    • 🔒 Strict
  • 🔧 Fixable
  • 💭 Requires type information