ter-padded-blocks (ESLint: padded-blocks)
enforce padding within blocks
Some style guides require block statements to start and end with blank lines. The goal is to improve readability by visually separating the block content and the surrounding code.
This rule has one option, which can be a string option or an object option
"ter-padded-blocks": [true]
"ter-padded-blocks": [true, "always"]
"ter-padded-blocks": [true, "never"]
"ter-padded-blocks": [true, { "blocks": "always" }]
"ter-padded-blocks": [true, { "blocks": "never" }]
{
"type": "array",
"items": [
{
"enum": [
"always",
"never"
]
},
{
"type": "object",
"properties": {
"blocks": {
"enum": [
"always",
"never"
]
},
"classes": {
"enum": [
"always",
"never"
]
},
"switches": {
"enum": [
"always",
"never"
]
}
},
"additionalProperties": false
}
],
"maxLength": 1
}