newline-after-import
Configuration
rslint.config.ts
Rule Details
Enforces having one or more empty lines after the last top-level import statement or require call.
This rule supports the following options:
countwhich sets the number of newlines that are enforced after the last top-level import statement or require call. This option defaults to1.exactCountwhich enforces the exact number of newlines mentioned incount. This option defaults tofalse.considerCommentswhich enforces the rule on comments after the last import statement as well when set to true. This option defaults tofalse.
Examples of incorrect code for this rule:
Examples of correct code for this rule: