Skip to content

☂️ Port a11y rules to HTML #8155

@ematipico

Description

@ematipico

Description

All lint rules that belong to a11y are applied only to JSX language. Now that our HTML linter is up and running, we can port those rules. Here's the list:

Important

  • PRs must go to the next branch, with a minor changeset
  • You have to comment if you're working on a rule. This will avoid having multiple contributors working on the same rule. In case of double PRs, precedence will go to users that comment here

Note

  • When working on a rule, you also need to consider .astro, .vue and .svelte files. These files might have their own syntax and nodes. Refer to the html.ungram file
  • We still don't have a way to query variables and components exposed by the JavaScript embedded code. If you happen to need that information, please consider making the rule more lax and adding this to the documentation using the following syntax
    :::note
    Explanation here...  
    :::

Want to contribute? Let us know you are interested! We will assign you to the issue to prevent several people to work on the same issue. Don't worry, we can unassign you later if you are no longer interested in the issue! Read our contributing guide and analyzer contributing guide.

Sub-issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-CLIArea: CLIA-LinterArea: linterL-HTMLLanguage: HTML and super languagesS-Help-wantedStatus: you're familiar with the code base and want to help the projectgood first issueGood for newcomers

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions