This rule extends the base eslint/padding-line-between-statements
rule.
{
// note you must disable the base rule as it can report incorrect errors
"padding-line-between-statements": "off",
"@typescript-eslint/padding-line-between-statements": [
"error",
{
"blankLine": "always",
"prev": "var",
"next": "return"
}
]
}
See eslint/padding-line-between-statements
options.
Taken with ❤️ from ESLint core