Skip to content

spaced-comment warns on "don't minify" comment blocks #2777

@ljharb

Description

@ljharb

Typically, the first comment block in a file starts with /*! to indicate to a minifier like uglify that it should not strip the comment block (a "prelude").

Could we add an option to the spaced-comment rule that allows this pattern?

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedThere is consensus among the team that this change meets the criteria for inclusionarchived due to ageThis issue has been archived; please open a new issue for any further discussionbugESLint is working incorrectlyruleRelates to ESLint's core rules

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions