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.
{
// note you must disable the base rule as it can report incorrect errors
"space-before-blocks": "off",
"@typescript-eslint/space-before-blocks": ["error"]
}
See eslint/space-before-blocks
options.
Taken with ❤️ from ESLint core
- ✅ Recommended
- 🔧 Fixable
- 💭 Requires type information