Skip to content

[FEATURE] Allow patterns in sort-attrs #404

@mfehrenbach

Description

@mfehrenbach

Hi again! I think it’d be handy for the sort-attrs rule to accept patterns/wildcards, akin to some of the other rules (like no-restricted-attrs).

I’m imagining this sort of thing:

"@html-eslint/sort-attrs": ["error", {
	"priority": [
		"id",
		"@*",
		":*",
		"webc:*",
		"aria-*",
	]
}]

I’m a WebC stan, but Vue directives are probably a wider use-case.

(Thanks again! Cheers.)

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions