htmlhint / htmlhint/HTMLHint

Allow configuration of the `attr-sorted` sort order

Open
#1,210 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement keep-unstale
Dominant language
JavaScript
Stars
3.3k
Forks
474
Avg merge
1d 11h
Merged PRs (30d)
12

Description

The attr-sorted rule currently has a rigid built-in order for the attributes, that cannot be changed (as far as I can see).

It would be better if this sort order array was exposed to config, so the end user project can override HTMLHint's built-in sort order with their own - in case of differing views of what order attributes should be in, and/or common project-specific custom attributes.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the attr-sorted rule and the configuration handling for its built-in attribute order. Done means projects can override that order, including adding project-specific custom attributes, while the existing default behavior remains intact.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.