src/content/docs/linter/rules/no-aria-unsupported-elements.mdx
import { Tabs, TabItem } from '@astrojs/starlight/components';
<Tabs> <TabItem label="JSX and TSX" icon="seti:javascript"> ## Summary - Rule available since: `v1.0.0` - Diagnostic Category: [`lint/a11y/noAriaUnsupportedElements`](/reference/diagnostics#diagnostic-category) - This rule is **recommended**, meaning it is enabled by default. - This rule has an [**unsafe**](/linter/#unsafe-fixes) fix. - The default severity of this rule is [**error**](/reference/diagnostics#error). - Sources: - Same as [`jsx-a11y/aria-unsupported-elements`](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/main/docs/rules/aria-unsupported-elements.md){
"linter": {
"rules": {
"a11y": {
"noAriaUnsupportedElements": "error"
}
}
}
}
Enforce that elements that do not support ARIA roles, states, and properties do not have those attributes.
<meta charset="UTF-8" role="meta" />
<html aria-required="true" />
<meta charset="UTF-8" />
<html></html>