Skip to content

Placeholder names with uppercase letters #22

Description

@burntcustard
placeholder-name-format:
    - 1
    - convention: hyphenatedbem

Doesn't allow for uppercase characters, so for example:

%u-translateX--50pc;

Comes up with a warning!

I'd like to allow these, because some CSS values that we're setting with our placeholders traditionally get written with uppercase letters, like transform: translateX()

So I think we should

placeholder-name-format:
    - 1
    - convention: ^[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*(?:__[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*)?(?:--[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*)*(?:\\[.+\\])?$
    - convention-explanation: 'hypenatedbem uppercase & multiple modifiers allowed'

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