description |
---|
Require empty lines around comments. |
🛑 This file is source code, not the primary documentation location! 🛑
See https://typescript-eslint.io/rules/lines-around-comment for documentation.
This rule extends the base eslint/lines-around-comment
rule.
It adds support for TypeScript syntax.
See the ESLint documentation for more details on the comma-dangle
rule.
{
// note you must disable the base rule as it can report incorrect errors
"lines-around-comment": "off",
"@typescript-eslint/lines-around-comment": ["error"]
}
In addition to the options supported by the lines-around-comment
rule in ESLint core, the rule adds the following options:
allowInterfaceStart: true
doesn't require a blank line after the interface body block startallowInterfaceEnd: true
doesn't require a blank line before the interface body block endallowTypeStart: true
doesn't require a blank line after the type literal block startallowTypeEnd: true
doesn't require a blank line after the type literal block end
Taken with ❤️ from ESLint core