Closed
Description
Proposal
Currently, padding-line-between-statements supports generic JS syntax elements like "class", "block", "block-like", "switch", "throw". However, TS-specific elements like "type" or "interface" are not supported.
{
"rules": {
"@typescript-eslint/padding-line-between-statements": [
"error",
{
"blankLine": "always",
"prev": "type",
"next": "interface"
}
]
}
}
type SomeType = {
value: string;
};
interface SomeInterface {
}
Expected Result
Rule should report the missing blank line between SomeType and SomeInterface.
Actual Result
The padding-line-between-statements rule from ESLint doesn't support the configuration options "type" or "interface" and will throw an error.
Additional Info
Original issue was submitted to eslint/eslint first: eslint/eslint#13477