persona-community-5/.pnpm-store/v3/files/58/1ac6e8b532cbf8dcb38d3ce865003739b7b0786034f48521079d6b97fd15ed86527f40c27b4b29d93d37d08dba6a70ae8046aa5b30983f4bb3dd092cbe5a50
rdev-worker a1d0d1bf1c
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
build: /implement-feature community-ui --requirements 'Build the React commu...
2026-02-24 08:22:30 +00:00

50 lines
910 B
Plaintext

---
description: 'Enforce consistent spacing before blocks.'
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
> 🛑 This file is source code, not the primary documentation location! 🛑
>
> See **https://typescript-eslint.io/rules/space-before-blocks** for documentation.
This rule extends the base [`eslint/space-before-blocks`](https://eslint.org/docs/rules/space-before-blocks) rule.
It adds support for interfaces and enums.
<Tabs>
<TabItem value="❌ Incorrect">
{/* prettier-ignore */}
```ts
enum Breakpoint{
Large,
Medium,
}
interface State{
currentBreakpoint: Breakpoint;
}
```
</TabItem>
<TabItem value="✅ Correct">
```ts
enum Breakpoint {
Large,
Medium,
}
interface State {
currentBreakpoint: Breakpoint;
}
```
</TabItem>
</Tabs>
## Options
In case a more specific options object is passed these blocks will follow `classes` configuration option.