Skip to content

[Rule Proposal]: Break style for class attributes #1926

Open
@Satont

Description

@Satont

Please describe what the rule should do:

Break style for class attributes, or maybe even class and style attributes?

I wan't to line break multi line classes to oneline.
I'm not sure what options this rule should have other than oneline.

What category should the rule belong to?

[X] Enforces code style (layout)
[ ] Warns about a potential error (problem)
[ ] Suggests an alternate way of doing something (suggestion)
[ ] Other (please specify:)

Provide 2-3 code examples that this rule should warn about:
That's should be warned if i set rule to oneline.

 <h6
    class="
    text-gray-500
    font-semibold
    text-sm
    py-2
    px-4
    block
    w-full
    whitespace-nowrap
    bg-transparent
  "
  >
Variables
</h6>

Should be warned

Additional context

I'm using eslint for automatically fix code issues on save, so if it possible to autofix it - will be much appreciated.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions