Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 882 Bytes

space-before-blocks.md

File metadata and controls

32 lines (21 loc) · 882 Bytes

Enforces consistent spacing before blocks (space-before-blocks)

Rule Details

This rule extends the base eslint/space-before-blocks rule. It adds support for interfaces and enums. These blocks follows classes configuration option in case a more specific options object is passed.

How to use

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

Options

See eslint/space-before-blocks options.

Taken with ❤️ from ESLint core

Attributes

  • ✅ Recommended
  • 🔧 Fixable
  • 💭 Requires type information