eslint-plugin-astro weekly downloads statistics
By ota-meshi (12 listings) · npm · ESLint plugins
ESLint plugin for Astro component
eslint-plugin-astro has 1,632,879 recorded weekly downloads on npm, an increase of 23.4% over the past 30 days, ranking #241 of 3,247 tracked listings.
About eslint-plugin-astro
Introduction
eslint-plugin-astro is [ESLint] plugin for [Astro components].
You can check on the Online DEMO.
This plugin is in the experimental stages of development.
At least it works fine with a withastro/docs repository.
📛 What is this plugin?
[ESLint] plugin for [Astro components].
- Linting Astro components using ESLint.
- Find problems with Astro components.
- Apply a consistent code style to Astro components.
- Linting targets include Frontmatter, HTML Template, JSX-like Expressions, Client-Side Scripts, Directives, and more.
- Check code in real time with the ESLint editor integrations.
📖 Documentation
See documents.
<!--INSTALL_GUIDE_START-->💿 Installation
npm install --save-dev eslint eslint-plugin-astro
If you write TypeScript in Astro components, you also need to install either typescript-eslint or @typescript-eslint/parser:
npm install --save-dev typescript-eslint
# or
npm install --save-dev @typescript-eslint/parser
If you want to use the rules for checking accessibility (A11Y), you also need to install eslint-plugin-jsx-a11y or eslint-plugin-jsx-a11y-x additionally:
(Either plugin may be used internally by the A11Y rules.)
npm install --save-dev eslint-plugin-jsx-a11y
or
npm install --save-dev eslint-plugin-jsx-a11y-x
<!--INSTALL_GUIDE_END--> <!--DOCS_IGNORE_END-->Requirements
- ESLint v10.0.0 and above
- Node.js v22.22.3, v24.16.0, v26.3.0 and above
📖 Usage
<!--USAGE_SECTION_START--> <!--USAGE_GUIDE_START-->Configuration
Flat Config (eslint.config.js)
This package is ESM-only. Use eslint.config.mjs, or use eslint.config.js in a project with "type": "module". See also: https://eslint.org/docs/latest/use/configure/configuration-files.
Example eslint.config.js:
import eslintPluginAstro from "eslint-plugin-astro"
export default [
// add more generic rule sets here, such as:
// js.configs.recommended,
...eslintPluginAstro.configs.recommended,
{
rules: {
// override/add rules settings here, such as:
// "astro/no-set-html-directive": "error"
},
},
]
This plugin provides configs:
base... Minimal configuration to enable correct Astro component linting.recommended... Above, plus rules to prevent errors or unintended behavior.all... Configuration enables all astro rules. It's meant for testing, not for production use because it changes with every minor and major version of the plugin. Use it at your own risk.- Extension of sharable configuration provided by eslint-plugin-jsx-a11y. You need to install eslint-plugin-jsx-a11y or eslint-plugin-jsx-a11y-x to use it.
jsx-a11y-recommended... Similar to thejsx-a11yrecommended configuration, but with the rules extended for Astro components enabled.jsx-a11y-strict... Similar to thejsx-a11ystrict configuration, but with the rules extended for Astro components enabled.
See the rule list to get the rules that this plugin provides.
The pull request diff here is an example of introducing eslint-plugin-astro to the withastro/docs repository.
Parser Configuration
See https://github.com/ota-meshi/astro-eslint-parser#readme.…
Description from the npm listing.
- eslint
- eslint-plugin
- eslintplugin
- astro
- astrojs
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 (592)Similar npm ESLint plugins plugins
All 20 eslint-plugin-astro 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-astro. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.