Skip to content

Disallow misspellings of properties (stlye, clsas) #992

Closed
@guyguy2001

Description

@guyguy2001

Please describe what the rule should do:
The rule should disallow the usage of misspellings of style and class (such as stlye) in the template, as misspelling them can waste a lot of time while trying to figure it out.

Should I make this rule accept a list of blacklisted property names, and have the misspellings as the default? Or should I keep it specific to the misspellings of style and class, and allow the user to give it a whitelist of words from that list that they want to allow?

What category should the rule belong to?

  • Enforces code style
  • Warns about a potential error
  • Suggests an alternate way of doing something
  • Other (please specify:)

Provide 2-3 code examples that this rule should warn about:

<div stlye="display: none;"></div>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions