Skip to content

New Rule: no-irregular-whitespace #157

@thecalamiity

Description

@thecalamiity

Rule details

Disallow irregular whitespaces.

What type of rule is this?

Warns about a potential problem

Example code

    .firstClass .secondClass {}
/**            ↑
 * Irregular whitespace. Selector would fail to match '.firstClass' */

Prior Art

no-irregular-whitespace

Participation

  • I am willing to submit a pull request to implement this rule.

Additional comments

Various whitespace characters can be inputted by programmers by mistake for example from copying or keyboard shortcuts. Pressing Alt + Space on macOS adds in a non breaking space character for example.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Complete

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions