What is the name of the eslint rule that will prevent empty lines after or before a curly brace ?
class Foo {
// prevent empty lines
bar() {
}
// prevent empty lines
}
The rule is "padded-blocks" and not "padding-line-between-statements"
More info : https://eslint.org/docs/rules/padded-blocks
"padding-line-between-statements"
Details: https://eslint.org/docs/rules/padding-line-between-statements
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With