{"name":"eslint-plugin-astro","version":"0.11.2","keywords":["eslint","eslint-plugin","eslintplugin","astro","astrojs"],"author":{"url":"https://github.com/ota-meshi","name":"Yosuke Ota"},"license":"MIT","_id":"eslint-plugin-astro@0.11.2","maintainers":[{"name":"ota-meshi","email":"otameshiyo23@gmail.com"}],"homepage":"https://ota-meshi.github.io/eslint-plugin-astro/","bugs":{"url":"https://github.com/ota-meshi/eslint-plugin-astro/issues"},"dist":{"shasum":"9e9f787b0620ca6874347c5098811dd33b5e1ed4","tarball":"http://registry-npm.ywwl.com/eslint-plugin-astro/download/eslint-plugin-astro-0.11.2.tgz","fileCount":91,"integrity":"sha512-aX6XnV13+Xd21+DzqSRNE2xw/4qNBr0iOJ6Akap/rThonLHPYZLt1F/Gm3DnHhKVRO48YZl2FXEMx6uwINCO1g==","signatures":[{"sig":"MEQCID2UBcDVEBoeSArwtMUQQb60c0QeqaWFZay+vPMQ47viAiAvhwAlUeQwRMSohNAbaoqHH3zD+rY5hzj6kL6gBgx8fA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":253642,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJioU/gACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpsxQ/9FItqE6ek32MTkNab4mFJFnApVHQSaNohL251K0w5Y341MJUb\r\nLwN6koApUCS8ml5h1Z6ryifsN6Up+id66EFY02zuRCclvf0WSAxMVEi1kzVv\r\nUKDoY7LaTy/USM6nJNdE1ILLbLUgt8CSN+N9KWO1cbsuO+WZZ4a/kP/+OPGy\r\nqBSkn9+ePUxPZRR/2N1gQdcsel5qJJMqMeuiPydHWA/2NeCTYahNgjguO3f4\r\n6Ndc1DUMC9bcvNqJXJExLoZykt1kMwJX+Ssh2/f8vYJHcOducH8ChK171Lvg\r\nK/P89y89xukj+D0jfERkU0g8WbVqLLNYqhlFawv9+qCSVP7UabsxGIY7PrP5\r\ndfOu20MgYOdagoopGDID2Tx4vaMTjMqzlwT4s4/mHjFixLFLvGGZvrS4v9ey\r\nVtAf15QXgUzz5jnoSoQbIR1jVwSYeKU7NIgxTXrZReVUmNJAXro7teFnRjwh\r\nRvF6lq5vrVLAGi3iOcWmZwQ3E+wU9R7IWuGkvkZmMB979yST8MpK2U8L9IE/\r\nTpcbl6Io51QE+0wyHuzFT2iwe4JykwBri7L8cA0/Hy3SWqgn1eKw2corDA/Y\r\nfeuJO08aU4fCcToyd21l4DAFNci4TGcL+vPbx7GQ9SU4sOqI9G6al3MdDxqp\r\nZYU/8YI7VfLGRb+2ANQ7q6CrVK2lhpmjNDI=\r\n=44/4\r\n-----END PGP SIGNATURE-----\r\n","size":41718,"noattachment":false,"key":"/eslint-plugin-astro/-/eslint-plugin-astro-0.11.2.tgz"},"main":"lib/index.js","types":"./lib/index.d.ts","gitHead":"1f1433f5f6bbb984032f3d307239d521a0f7a05d","scripts":{"new":"ts-node --transpile-only ./tools/new-rule.ts","lint":"eslint .","test":"mocha --require ts-node/register \"tests/src/**/*.ts\" --reporter dot --timeout 60000","build":"npm run build:ts","clean":"rimraf lib .nyc_output dist coverage","cover":"nyc --reporter=lcov npm run test","debug":"mocha --require ts-node/register/transpile-only \"tests/src/**/*.ts\" --reporter dot --timeout 60000","update":"ts-node --transpile-only ./tools/update.ts","version":"env-cmd -e version npm run update && git add .","build:ts":"tsc --project ./tsconfig.build.json","docs:dev":"astro dev","prebuild":"npm run -s clean","docs:build":"patch-package && astro build","docs:setup":"node ./docs-build/setup-docs.mjs","eslint-fix":"eslint . --fix","preversion":"npm test && git add .","docs:preview":"astro preview"},"_npmUser":{"name":"ota-meshi","email":"otameshiyo23@gmail.com"},"repository":{"url":"git+https://github.com/ota-meshi/eslint-plugin-astro.git","type":"git"},"_npmVersion":"8.5.5","description":"ESLint plugin for Astro component","directories":{},"_nodeVersion":"16.15.0","dependencies":{"postcss":"^8.4.14","eslint-utils":"^3.0.0","sourcemap-codec":"^1.4.8","astro-eslint-parser":"^0.2.1","postcss-selector-parser":"^6.0.10","@typescript-eslint/types":"^5.25.0"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^15.1.0","less":"^4.1.2","pako":"^2.0.4","sass":"^1.52.2","astro":"^1.0.0-beta.35","mocha":"^10.0.0","assert":"^2.0.0","eslint":"^8.15.0","rimraf":"^3.0.2","stylus":"^0.58.1","svelte":"^3.48.0","env-cmd":"^10.1.0","esbuild":"^0.14.41","js-yaml":"^4.1.0","ts-node":"10.8.0","prettier":"^2.6.2","remark-gfm":"^3.0.1","typescript":"^4.6.4","@types/less":"^3.0.3","@types/node":"^17.0.35","@types/mocha":"^9.1.1","remark-emoji":"^3.0.2","@types/eslint":"^8.4.2","@types/estree":"0.0.51","@types/stylus":"^0.48.38","patch-package":"^6.4.7","postcss-nested":"^5.0.6","@astrojs/svelte":"^0.1.3","eslint-plugin-yml":"^1.0.0","eslint-plugin-node":"^11.1.0","@types/eslint-scope":"^3.7.3","@types/eslint-utils":"^3.0.1","eslint-plugin-astro":"^0.11.0","eslint-plugin-jsonc":"^2.2.1","eslint-plugin-regexp":"^1.0.0","prettier-plugin-astro":"^0.1.0-0","eslint-config-prettier":"^8.5.0","eslint-plugin-jsx-a11y":"^6.5.1","eslint-plugin-markdown":"^2.2.1","eslint-plugin-prettier":"^4.0.0","prettier-plugin-svelte":"^2.7.0","@ota-meshi/eslint-plugin":"^0.9.0","@typescript-eslint/parser":"^5.25.0","eslint-plugin-eslint-plugin":"^4.2.0","eslint-plugin-eslint-comments":"^3.2.0","@ota-meshi/eslint-plugin-svelte":"^0.34.0","eslint-plugin-node-dependencies":"^0.8.0","@typescript-eslint/eslint-plugin":"^5.25.0","eslint-plugin-json-schema-validator":"^3.0.2"},"peerDependencies":{"eslint":">=7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/eslint-plugin-astro_0.11.2_1654738911971_0.6070446822315216","host":"s3://npm-registry-packages"},"readme":"# Introduction\n\n`eslint-plugin-astro` is [ESLint] plugin for [Astro components].  \nYou can check on the [Online DEMO](https://ota-meshi.github.io/eslint-plugin-astro/playground/).\n\n[![sponsors](https://img.shields.io/badge/-Sponsor-fafbfc?logo=GitHub%20Sponsors)](https://github.com/sponsors/ota-meshi)\n\n[![NPM license](https://img.shields.io/npm/l/eslint-plugin-astro.svg)](https://www.npmjs.com/package/eslint-plugin-astro)\n[![NPM version](https://img.shields.io/npm/v/eslint-plugin-astro.svg)](https://www.npmjs.com/package/eslint-plugin-astro)\n[![NPM downloads](https://img.shields.io/badge/dynamic/json.svg?label=downloads&colorB=green&suffix=/day&query=$.downloads&uri=https://api.npmjs.org//downloads/point/last-day/eslint-plugin-astro&maxAge=3600)](http://www.npmtrends.com/eslint-plugin-astro)\n[![NPM downloads](https://img.shields.io/npm/dw/eslint-plugin-astro.svg)](http://www.npmtrends.com/eslint-plugin-astro)\n[![NPM downloads](https://img.shields.io/npm/dm/eslint-plugin-astro.svg)](http://www.npmtrends.com/eslint-plugin-astro)\n[![NPM downloads](https://img.shields.io/npm/dy/eslint-plugin-astro.svg)](http://www.npmtrends.com/eslint-plugin-astro)\n[![NPM downloads](https://img.shields.io/npm/dt/eslint-plugin-astro.svg)](http://www.npmtrends.com/eslint-plugin-astro)\n[![Build Status](https://github.com/ota-meshi/eslint-plugin-astro/workflows/CI/badge.svg?branch=main)](https://github.com/ota-meshi/eslint-plugin-astro/actions?query=workflow%3ACI)\n[![Coverage Status](https://coveralls.io/repos/github/ota-meshi/eslint-plugin-astro/badge.svg?branch=main)](https://coveralls.io/github/ota-meshi/eslint-plugin-astro?branch=main)\n\nThis plugin is in the **_experimental stages_** of development.\n\nAt least it works fine with a [withastro/docs](https://github.com/withastro/docs) repository.\n\n## 📛 What is this plugin?\n\n[ESLint] plugin for [Astro components].\n\n- Linting Astro components using ESLint.\n- Find problems with Astro components.\n- Apply a consistent code style to Astro components.\n- Linting targets include [Frontmatter], [HTML Template], [JSX-like Expressions], [Client-Side Scripts], [Directives], and more.\n- Check code in real time with the ESLint editor integrations.\n\n[frontmatter]: https://docs.astro.build/en/core-concepts/astro-components/#the-component-script\n[html template]: https://docs.astro.build/en/core-concepts/astro-components/#the-component-template\n[JSX-like Expressions]: https://docs.astro.build/en/core-concepts/astro-syntax/#jsx-like-expressions\n[client-side scripts]: https://docs.astro.build/en/guides/client-side-scripts/\n[directives]: https://docs.astro.build/en/reference/directives-reference/\n\n<!--DOCS_IGNORE_START-->\n\n## 📖 Documentation\n\nSee [documents](https://ota-meshi.github.io/eslint-plugin-astro/).\n\n<!--INSTALL_GUIDE_START-->\n\n## 💿 Installation\n\n```bash\nnpm install --save-dev eslint eslint-plugin-astro\n```\n\nIf you write TypeScript in Astro components, you also need to install either `typescript-eslint` or `@typescript-eslint/parser`:\n\n```bash\nnpm install --save-dev typescript-eslint\n# or\nnpm install --save-dev @typescript-eslint/parser\n```\n\nIf you want to use the rules for checking accessibility (A11Y), you also need to install [eslint-plugin-jsx-a11y] additionally:  \n(It is used internally in the rules for A11Y.)\n\n```bash\nnpm install --save-dev eslint-plugin-jsx-a11y\n```\n\n[eslint-plugin-jsx-a11y]: https://github.com/jsx-eslint/eslint-plugin-jsx-a11y\n\n> **Requirements**\n>\n> - ESLint v10.0.0 and above\n> - Node.js v22.22.3, v24.16.0, v26.3.0 and above\n\n<!--INSTALL_GUIDE_END-->\n\n<!--DOCS_IGNORE_END-->\n\n## 📖 Usage\n\n<!--USAGE_SECTION_START-->\n<!--USAGE_GUIDE_START-->\n\n### Configuration\n\n#### Flat Config \\(`eslint.config.js`\\)\n\nThis 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](https://eslint.org/docs/latest/use/configure/configuration-files).\n\nExample **eslint.config.js**:\n\n```js\nimport eslintPluginAstro from \"eslint-plugin-astro\"\n\nexport default [\n  // add more generic rule sets here, such as:\n  // js.configs.recommended,\n  ...eslintPluginAstro.configs.recommended,\n  {\n    rules: {\n      // override/add rules settings here, such as:\n      // \"astro/no-set-html-directive\": \"error\"\n    },\n  },\n]\n```\n\nThis plugin provides configs:\n\n- `base` ... Minimal configuration to enable correct Astro component linting.\n- `recommended` ... Above, plus rules to prevent errors or unintended behavior.\n- `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.\n- Extension of sharable configuration provided by [eslint-plugin-jsx-a11y]. You need to install [eslint-plugin-jsx-a11y] to use it.\n  - `jsx-a11y-recommended` ... Similar to the [`jsx-a11y` recommended configuration](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y#rule-strictness-in-different-modes), but with the rules extended for Astro components enabled.\n  - `jsx-a11y-strict` ... Similar to the [`jsx-a11y` strict configuration](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y#rule-strictness-in-different-modes), but with the rules extended for Astro components enabled.\n\nSee [the rule list](https://ota-meshi.github.io/eslint-plugin-astro/rules/) to get the `rules` that this plugin provides.\n\nThe pull request diff [here](https://github.com/withastro/docs/pull/710/files) is an example of introducing `eslint-plugin-astro` to the [withastro/docs](https://github.com/withastro/docs) repository.\n\n#### Parser Configuration\n\nSee [https://github.com/ota-meshi/astro-eslint-parser#readme](https://github.com/ota-meshi/astro-eslint-parser#readme).\n\n#### Using `eslint-plugin-import`\n\nWhen using [`eslint-plugin-import`](https://github.com/import-js/eslint-plugin-import), configure it to parse Astro files and recognize Astro's virtual modules. After applying the plugin's recommended configuration, add the following config object:\n\n```json\n{\n  \"settings\": {\n    \"import/core-modules\": [\"astro:content\", \"astro:transitions\"],\n    \"import/parsers\": {\n      \"astro-eslint-parser\": [\".astro\"],\n      \"espree\": [\".js\", \".mjs\", \".cjs\"],\n      \"@typescript-eslint/parser\": [\".ts\", \".tsx\"]\n    }\n  }\n}\n```\n\nAdd any other virtual `astro:*` modules that your project imports to `import/core-modules`. Only include parser entries for file types and parsers that your project uses.\n\n### Resolving Error in JSX: Unsafe return of an `any` typed value\n\nAstro supports JSX from multiple frameworks such as **React**, **Preact**, and **Solid.js** by defining JSX Elements as `HTMLElement | any;`. When a framework with a JSX type definition is not present in your project this **any** can cause the ESLint error `@typescript-eslint/no-unsafe-return`.\n\nThis can be resolved by overriding the astroHTML.JSX.Element definition with a `*.d.ts` file such as `jsx.d.ts` in your project root directory:\n\n```typescript\nimport \"astro/astro-jsx\";\n\ndeclare global {\n  namespace JSX {\n    // type Element = astroHTML.JSX.Element // We want to use this, but it is defined as any.\n    type Element = HTMLElement;\n  }\n}\n```\n\nAdd this `*.d.ts` to your `tsconfig.eslint.json`:\n\n```json\n{\n  \"extends\": \"./tsconfig.json\",\n  \"include\": [\n    // ...\n    \"jsx.d.ts\"\n  ]\n}\n\n```\n\nIf you use typed linting for Astro files, point `languageOptions.parserOptions.project` at this config:\n\n```js\nimport eslintPluginAstro from \"eslint-plugin-astro\"\n\nexport default [\n  ...eslintPluginAstro.configs.recommended,\n  {\n    files: [\"*.astro\", \"**/*.astro\"],\n    languageOptions: {\n      parserOptions: {\n        // add this line\n        project: \"./tsconfig.eslint.json\",\n      },\n    },\n  },\n]\n```\n\nAlternatively, add the `project` option to an existing Astro config entry:\n\n```js\nexport default [\n  // ...\n  {\n    files: [\"*.astro\", \"**/*.astro\"],\n    languageOptions: {\n      parserOptions: {\n        project: \"./tsconfig.eslint.json\",\n      },\n    },\n  },\n]\n```\n\n### Running ESLint from the command line\n\nIf you want to run `eslint` from the command line, make sure you include the `.astro` extension using a glob pattern, because ESLint targets only `.js` files by default.\n\nExamples:\n\n```bash\neslint \"src/**/*.{js,astro}\"\n```\n\n## 💻 Editor Integrations\n\n### Visual Studio Code\n\nUse the [dbaeumer.vscode-eslint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint) extension that Microsoft provides officially.\n\nYou have to configure the `eslint.validate` option of the extension to check `.astro` files, because the extension targets only `*.js` or `*.jsx` files by default.\n\nExample **.vscode/settings.json**:\n\n```json\n{\n  \"eslint.validate\": [\n    \"javascript\",\n    \"javascriptreact\",\n    \"astro\", // Enable .astro\n    \"typescript\", // Enable .ts\n    \"typescriptreact\" // Enable .tsx\n  ]\n}\n```\n\n### Zed\n\nZed has built-in support for ESLint. However, you need to configure ESLint to work with Astro files.\n\nExample **.zed/settings.json**:\n\n```json\n{\n  \"languages\": {\n    \"Astro\": {\n      \"language_servers\": [\"eslint\", \"...\"]\n    }\n  }\n}\n```\n\n<!--USAGE_GUIDE_END-->\n<!--USAGE_SECTION_END-->\n\n## ✅ Rules\n\n<!--RULES_SECTION_START-->\n\nThe `--fix` option on the [command line](https://eslint.org/docs/user-guide/command-line-interface#fixing-problems) automatically fixes problems reported by rules which have a wrench 🔧 below.  \nThe rules with the following star ⭐ are included in the `recommended` config.\n\n> Doesn't the rule you want exist? [Share your idea of that rule with us](https://github.com/ota-meshi/eslint-plugin-astro/issues/new?template=new_rule_request.yml).\n\n<!--RULES_TABLE_START-->\n\n## Possible Errors\n\nThese rules relate to possible syntax or logic errors in Astro component code:\n\n| Rule ID | Description |    |\n|:--------|:------------|:---|\n| [astro/missing-client-only-directive-value](https://ota-meshi.github.io/eslint-plugin-astro/rules/missing-client-only-directive-value/) | the client:only directive is missing the correct component's framework value | ⭐ |\n| [astro/no-conflict-set-directives](https://ota-meshi.github.io/eslint-plugin-astro/rules/no-conflict-set-directives/) | disallow conflicting set directives and child contents | ⭐ |\n| [astro/no-deprecated-astro-canonicalurl](https://ota-meshi.github.io/eslint-plugin-astro/rules/no-deprecated-astro-canonicalurl/) | disallow using deprecated `Astro.canonicalURL` | ⭐ |\n| [astro/no-deprecated-astro-fetchcontent](https://ota-meshi.github.io/eslint-plugin-astro/rules/no-deprecated-astro-fetchcontent/) | disallow using deprecated `Astro.fetchContent()` | ⭐🔧 |\n| [astro/no-deprecated-astro-resolve](https://ota-meshi.github.io/eslint-plugin-astro/rules/no-deprecated-astro-resolve/) | disallow using deprecated `Astro.resolve()` | ⭐ |\n| [astro/no-deprecated-getentrybyslug](https://ota-meshi.github.io/eslint-plugin-astro/rules/no-deprecated-getentrybyslug/) | disallow using deprecated `getEntryBySlug()` | ⭐ |\n| [astro/no-exports-from-components](https://ota-meshi.github.io/eslint-plugin-astro/rules/no-exports-from-components/) | disallow value export | ⭐ |\n| [astro/no-prerender-export-outside-pages](https://ota-meshi.github.io/eslint-plugin-astro/rules/no-prerender-export-outside-pages/) | disallow `prerender` export outside of pages/ directory | ⭐ |\n| [astro/no-unused-define-vars-in-style](https://ota-meshi.github.io/eslint-plugin-astro/rules/no-unused-define-vars-in-style/) | disallow unused `define:vars={...}` in `style` tag | ⭐ |\n\n## Security Vulnerability\n\nThese rules relate to security vulnerabilities in Astro component code:\n\n| Rule ID | Description |    |\n|:--------|:------------|:---|\n| [astro/no-set-html-directive](https://ota-meshi.github.io/eslint-plugin-astro/rules/no-set-html-directive/) | disallow use of `set:html` to prevent XSS attack |  |\n| [astro/no-unsafe-inline-scripts](https://ota-meshi.github.io/eslint-plugin-astro/rules/no-unsafe-inline-scripts/) | disallow inline `<script>` without `src` to encourage CSP-safe patterns |  |\n\n## Best Practices\n\nThese rules relate to better ways of doing things to help you avoid problems:\n\n| Rule ID | Description |    |\n|:--------|:------------|:---|\n| [astro/no-set-text-directive](https://ota-meshi.github.io/eslint-plugin-astro/rules/no-set-text-directive/) | disallow use of `set:text` | 🔧 |\n| [astro/no-unused-css-selector](https://ota-meshi.github.io/eslint-plugin-astro/rules/no-unused-css-selector/) | disallow selectors defined in `style` tag that don't use in HTML |  |\n\n## Stylistic Issues\n\nThese rules relate to style guidelines, and are therefore quite subjective:\n\n| Rule ID | Description |    |\n|:--------|:------------|:---|\n| [astro/prefer-class-list-directive](https://ota-meshi.github.io/eslint-plugin-astro/rules/prefer-class-list-directive/) | require `class:list` directives instead of `class` with expressions | 🔧 |\n| [astro/prefer-object-class-list](https://ota-meshi.github.io/eslint-plugin-astro/rules/prefer-object-class-list/) | require use object instead of ternary expression in `class:list` | 🔧 |\n| [astro/prefer-split-class-list](https://ota-meshi.github.io/eslint-plugin-astro/rules/prefer-split-class-list/) | require use split array elements in `class:list` | 🔧 |\n| [astro/sort-attributes](https://ota-meshi.github.io/eslint-plugin-astro/rules/sort-attributes/) | enforce sorting of attributes | 🔧 |\n\n## A11Y Extension Rules\n\nThese rules extend the rules provided by [eslint-plugin-jsx-a11y] to work well in Astro component:  \n(You need to install [eslint-plugin-jsx-a11y] to use the rules.)\n\n| Rule ID | Description |    |\n|:--------|:------------|:---|\n| [astro/jsx-a11y/alt-text](https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/alt-text/) | apply `jsx-a11y/alt-text` rule to Astro components |  |\n| [astro/jsx-a11y/anchor-ambiguous-text](https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/anchor-ambiguous-text/) | apply `jsx-a11y/anchor-ambiguous-text` rule to Astro components |  |\n| [astro/jsx-a11y/anchor-has-content](https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/anchor-has-content/) | apply `jsx-a11y/anchor-has-content` rule to Astro components |  |\n| [astro/jsx-a11y/anchor-is-valid](https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/anchor-is-valid/) | apply `jsx-a11y/anchor-is-valid` rule to Astro components |  |\n| [astro/jsx-a11y/aria-activedescendant-has-tabindex](https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/aria-activedescendant-has-tabindex/) | apply `jsx-a11y/aria-activedescendant-has-tabindex` rule to Astro components |  |\n| [astro/jsx-a11y/aria-props](https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/aria-props/) | apply `jsx-a11y/aria-props` rule to Astro components |  |\n| [astro/jsx-a11y/aria-proptypes](https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/aria-proptypes/) | apply `jsx-a11y/aria-proptypes` rule to Astro components |  |\n| [astro/jsx-a11y/aria-role](https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/aria-role/) | apply `jsx-a11y/aria-role` rule to Astro components |  |\n| [astro/jsx-a11y/aria-unsupported-elements](https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/aria-unsupported-elements/) | apply `jsx-a11y/aria-unsupported-elements` rule to Astro components |  |\n| [astro/jsx-a11y/autocomplete-valid](https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/autocomplete-valid/) | apply `jsx-a11y/autocomplete-valid` rule to Astro components |  |\n| [astro/jsx-a11y/click-events-have-key-events](https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/click-events-have-key-events/) | apply `jsx-a11y/click-events-have-key-events` rule to Astro components |  |\n| [astro/jsx-a11y/control-has-associated-label](https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/control-has-associated-label/) | apply `jsx-a11y/control-has-associated-label` rule to Astro components |  |\n| [astro/jsx-a11y/heading-has-content](https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/heading-has-content/) | apply `jsx-a11y/heading-has-content` rule to Astro components |  |\n| [astro/jsx-a11y/html-has-lang](https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/html-has-lang/) | apply `jsx-a11y/html-has-lang` rule to Astro components |  |\n| [astro/jsx-a11y/iframe-has-title](https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/iframe-has-title/) | apply `jsx-a11y/iframe-has-title` rule to Astro components |  |\n| [astro/jsx-a11y/img-redundant-alt](https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/img-redundant-alt/) | apply `jsx-a11y/img-redundant-alt` rule to Astro components |  |\n| [astro/jsx-a11y/interactive-supports-focus](https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/interactive-supports-focus/) | apply `jsx-a11y/interactive-supports-focus` rule to Astro components |  |\n| [astro/jsx-a11y/label-has-associated-control](https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/label-has-associated-control/) | apply `jsx-a11y/label-has-associated-control` rule to Astro components |  |\n| [astro/jsx-a11y/lang](https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/lang/) | apply `jsx-a11y/lang` rule to Astro components |  |\n| [astro/jsx-a11y/media-has-caption](https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/media-has-caption/) | apply `jsx-a11y/media-has-caption` rule to Astro components |  |\n| [astro/jsx-a11y/mouse-events-have-key-events](https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/mouse-events-have-key-events/) | apply `jsx-a11y/mouse-events-have-key-events` rule to Astro components |  |\n| [astro/jsx-a11y/no-access-key](https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/no-access-key/) | apply `jsx-a11y/no-access-key` rule to Astro components |  |\n| [astro/jsx-a11y/no-aria-hidden-on-focusable](https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/no-aria-hidden-on-focusable/) | apply `jsx-a11y/no-aria-hidden-on-focusable` rule to Astro components |  |\n| [astro/jsx-a11y/no-autofocus](https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/no-autofocus/) | apply `jsx-a11y/no-autofocus` rule to Astro components |  |\n| [astro/jsx-a11y/no-distracting-elements](https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/no-distracting-elements/) | apply `jsx-a11y/no-distracting-elements` rule to Astro components |  |\n| [astro/jsx-a11y/no-interactive-element-to-noninteractive-role](https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/no-interactive-element-to-noninteractive-role/) | apply `jsx-a11y/no-interactive-element-to-noninteractive-role` rule to Astro components |  |\n| [astro/jsx-a11y/no-noninteractive-element-interactions](https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/no-noninteractive-element-interactions/) | apply `jsx-a11y/no-noninteractive-element-interactions` rule to Astro components |  |\n| [astro/jsx-a11y/no-noninteractive-element-to-interactive-role](https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/no-noninteractive-element-to-interactive-role/) | apply `jsx-a11y/no-noninteractive-element-to-interactive-role` rule to Astro components |  |\n| [astro/jsx-a11y/no-noninteractive-tabindex](https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/no-noninteractive-tabindex/) | apply `jsx-a11y/no-noninteractive-tabindex` rule to Astro components |  |\n| [astro/jsx-a11y/no-redundant-roles](https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/no-redundant-roles/) | apply `jsx-a11y/no-redundant-roles` rule to Astro components |  |\n| [astro/jsx-a11y/no-static-element-interactions](https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/no-static-element-interactions/) | apply `jsx-a11y/no-static-element-interactions` rule to Astro components |  |\n| [astro/jsx-a11y/prefer-tag-over-role](https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/prefer-tag-over-role/) | apply `jsx-a11y/prefer-tag-over-role` rule to Astro components |  |\n| [astro/jsx-a11y/role-has-required-aria-props](https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/role-has-required-aria-props/) | apply `jsx-a11y/role-has-required-aria-props` rule to Astro components |  |\n| [astro/jsx-a11y/role-supports-aria-props](https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/role-supports-aria-props/) | apply `jsx-a11y/role-supports-aria-props` rule to Astro components |  |\n| [astro/jsx-a11y/scope](https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/scope/) | apply `jsx-a11y/scope` rule to Astro components |  |\n| [astro/jsx-a11y/tabindex-no-positive](https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/tabindex-no-positive/) | apply `jsx-a11y/tabindex-no-positive` rule to Astro components |  |\n\n## Extension Rules\n\nThese rules extend the rules provided by ESLint itself to work well in Astro component:\n\n| Rule ID | Description |    |\n|:--------|:------------|:---|\n| [astro/semi](https://ota-meshi.github.io/eslint-plugin-astro/rules/semi/) | Require or disallow semicolons instead of ASI | 🔧 |\n\n## Deprecated\n\n- ⚠️ We're going to remove deprecated rules in the next major release. Please migrate to successor/new rules.\n- 😇 We don't fix bugs which are in deprecated rules since we don't have enough resources.\n\n| Rule ID | Description |    |\n|:--------|:------------|:---|\n| [astro/no-omitted-end-tags](https://ota-meshi.github.io/eslint-plugin-astro/rules/no-omitted-end-tags/) | (no replacement) |\n| [astro/valid-compile](https://ota-meshi.github.io/eslint-plugin-astro/rules/valid-compile/) | (no replacement) |\n\n<!--RULES_TABLE_END-->\n<!--RULES_SECTION_END-->\n\n## 🚥 Versioning policy\n\nThis plugin follows [Semantic Versioning].\nHowever, please note that we do not follow [ESLint's Semantic Versioning Policy].\nIn minor version releases, this plugin may change the sharable configs provided by the plugin or the default behavior of the plugin's rules in order to add features to the plugin. Because we want to add many features to the plugin soon, so that users can easily take advantage of new features in Astro.\n\nAccording to our policy, any minor update may report more linting errors than the previous release. As such, we recommend using the [tilde (`~`)](https://semver.npmjs.com/#syntax-examples) in `package.json` to guarantee the results of your builds.\n\n[Semantic Versioning]: https://semver.org/\n[ESLint's Semantic Versioning Policy]: https://github.com/eslint/eslint#semantic-versioning-policy\n\n<!--DOCS_IGNORE_START-->\n\n## 🍻 Contributing\n\nWelcome contributing!\n\nPlease use GitHub's Issues/PRs.\n\n### Development Tools\n\n- `npm test` runs tests and measures coverage.\n- `npm run update` runs in order to update readme and recommended configuration.\n\n### Working With Rules\n\nThis plugin uses [astro-eslint-parser](https://github.com/ota-meshi/astro-eslint-parser) for the parser. Check [here](https://ota-meshi.github.io/astro-eslint-parser/) to find out about AST.\n\n<!--DOCS_IGNORE_END-->\n\n## ❤️ Supporting\n\nIf you are willing to see that this package continues to be maintained, please consider sponsoring me.\n\n[![sponsors](https://img.shields.io/badge/-Sponsor-fafbfc?logo=GitHub%20Sponsors)](https://github.com/sponsors/ota-meshi)\n\n## 🔒 License\n\nSee the [LICENSE](LICENSE) file for license rights and limitations (MIT).\n\n[eslint]: https://eslint.org/\n[astro components]: https://docs.astro.build/en/core-concepts/astro-components/\n","publish_time":1654738912152,"_cnpm_publish_time":1654738912152,"dist-tags":{"latest":"3.2.1"}}