space-before-blocks
This rule extends the base space-before-blocks
rule. It adds support for interfaces and enums.
❌ Incorrect
ts
enum Breakpoint{
Large, Medium;
}
interface State{
currentBreakpoint: Breakpoint;
}
enum Breakpoint{
Large, Medium;
}
interface State{
currentBreakpoint: Breakpoint;
}
✅ Correct
ts
enum Breakpoint {
Large, Medium;
}
interface State {
currentBreakpoint: Breakpoint;
}
enum Breakpoint {
Large, Medium;
}
interface State {
currentBreakpoint: Breakpoint;
}
Options
In case a more specific options object is passed these blocks will follow classes
configuration option.