eslint-plugin-lit-a11y weekly downloads statistics
By open-wc · npm · ESLint plugins
linting plugin for lit-a11y
eslint-plugin-lit-a11y has 56,494 recorded weekly downloads on npm, a decrease of 17.8% over the past 30 days, ranking #568 of 2,322 tracked listings.
About eslint-plugin-lit-a11y
Linting >> EsLint Plugin Lit A11y >> Overview || -5
Accessibility linting plugin for lit-html.
Most of the rules are ported from eslint-plugin-jsx-a11y, and made to work with lit-html templates and custom elements.
Installation
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install eslint-plugin-lit-a11y:
$ npm install eslint-plugin-lit-a11y@next --save-dev
Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-lit-a11y globally.
Usage
Add lit-a11y to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": ["lit-a11y"]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"lit-a11y/rule-name": 2
}
}
Configuration
You may also extend the recommended configuration like so:
{
"extends": ["plugin:lit-a11y/recommended"]
}
By default, any tagged template literal that starts with html is linted. Example:
html` <img /> `;
It could be the case, however, that you're using multiple rendering libraries in a project, like for example htm, which also uses a html tagged template literal, but has a slightly different syntax than lit-html. In this case you can specify the following option, to make sure only lit-html tagged template literals are linted:
{
"settings": {
"litHtmlSources": true
}
}
This will cause the plugin to lint only html tagged template literals that are imported from either 'lit', 'lit-element' or 'lit-html'.
If you're importing lit-html from a package that re-exports lit-html, like for example @apollo-elements/lit-apollo, you can specify @apollo-elements/lit-apollo as a valid litHtmlSource like so:
{
"settings": {
"litHtmlSources": ["@apollo-elements/lit-apollo"]
}
}
Supported Rules
- lit-a11y/accessible-emoji
- lit-a11y/alt-text
- lit-a11y/anchor-has-content
- lit-a11y/anchor-is-valid
- lit-a11y/aria-activedescendant-has-tabindex
- lit-a11y/aria-attr-valid-value
- lit-a11y/aria-attrs
- lit-a11y/aria-role
- lit-a11y/aria-unsupported-elements
- lit-a11y/autocomplete-valid
- lit-a11y/click-events-have-key-events
- lit-a11y/heading-has-content
- lit-a11y/iframe-title
- lit-a11y/img-redundant-alt
- lit-a11y/list
- lit-a11y/mouse-events-have-key-events
- lit-a11y/no-access-key
- lit-a11y/no-autofocus
- lit-a11y/no-distracting-elements
- lit-a11y/no-invalid-change-handler
- lit-a11y/no-redundant-role -…
Description from the npm listing.
- eslint
- eslintplugin
- eslint-plugin
- lit
- a11y
- accessibility
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (122)Similar npm ESLint plugins plugins
All 20 eslint-plugin-lit-a11y alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/eslint-plugin-lit-a11y. First seen Oct 16, 2026; last successful collection Oct 20, 2026. See the methodology.