Some style guidelines require that block statements must begin and end with blank lines. I would apprecitae if this lovely formatter could support this with the help of an option e. g. pad_block.
-- pad_block: true
function outer()
local function inner1()
end
local function inner2()
end
end
-- pad_block: false
function outer()
local function inner1()
end
local function inner2()
end
end
Control structure blocks
-- pad_block: true
if x == 1 then
print(x)
else
print(1)
end
-- pad_block: false
if x == 1 then
print(x)
else
print(1)
end
Some style guidelines require that block statements must begin and end with blank lines. I would apprecitae if this lovely formatter could support this with the help of an option e. g.
pad_block
.https://eslint.org/docs/latest/rules/padded-blocks
Function blocks
Control structure blocks
Busted