Appearance
@stylistic/js/
This rule extends the base lines-around-comment rule. It adds support for TypeScript syntax.
lines-around-comment
In addition to the options supported by the js/lines-around-comment rule, the rule adds the following options:
js/lines-around-comment
allowEnumEnd: true
allowEnumStart: true
allowInterfaceEnd: true
allowInterfaceStart: true
allowModuleEnd: true
allowModuleStart: true
allowTypeEnd: true
allowTypeStart: true
@stylistic/js/
lines-around-comment
This rule extends the base
lines-around-comment
rule. It adds support for TypeScript syntax.Options
In addition to the options supported by the
js/lines-around-comment
rule, the rule adds the following options:allowEnumEnd: true
doesn't require a blank line after an enum body block endallowEnumStart: true
doesn't require a blank line before an enum body block startallowInterfaceEnd: true
doesn't require a blank line before an interface body block endallowInterfaceStart: true
doesn't require a blank line after an interface body block startallowModuleEnd: true
doesn't require a blank line before a module body block endallowModuleStart: true
doesn't require a blank line after a module body block startallowTypeEnd: true
doesn't require a blank line before a type literal block endallowTypeStart: true
doesn't require a blank line after a type literal block start