Skip to content

[Feature request] Replace overflow-hidden text-ellipsis whitespace-nowrap with truncate #253

@moshest

Description

@moshest

Is your feature request related to a problem? Please describe.

I didn't know there is a shortcut for overflow-hidden text-ellipsis whitespace-nowrap

Describe the solution you'd like

I would like the linter to automatically alert with and error and suggest a fix to replace with truncate

Additional context

Maybe it will be helpful to add additional warning if:

  • the user use text-ellipsis or truncate on inline tags like <span> without block or inline-block class (flex or flex-inline will not work).
  • the user didn't define a width limit with w-XXX or max-w-XXX

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions