There are a lot of options in the padding-line-between-statements
role, but I can't find a role that forces this code:
const app = express()
app.use('/', (req, res) => {
const x = req.body
return x
})
To be with an empty line after app.use
:
const app = express()
app.use('/', (req, res) => {
const x = req.body
return x
})
Of course, for this example, I can use { blankLine: "always", prev: ["*"], next: "const"}
, but I'm looking for more generic solution.
The padded-blocks
is almost what we need, except it add an empty line for both start and end of any block.