Skip to content

Improve float to-to-top behavior with existing imports #1502

@timothycrosley

Description

@timothycrosley

It would be nice for the float to top setting to respect at least one single new line after the top of file comment if it already exists with an import statement. This would make it more usable for projects that want to enforce imports done at the top of the file, instead of just using it for its initial intended usage of being a short cut to push imports to the top. See comment from @char101 here: #1499

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions