= Vec::new();
let options = AnalyzerOptions::default();
- let rule_filter = RuleFilter::Rule("suspicious", "noArrayIndexKey");
+ let rule_filter = RuleFilter::Rule("nursery", "useAriaPropTypes");
analyze(
FileId::zero(),
&parsed.tree(),
diff --git a/crates/rome_js_analyze/tests/specs/nursery/useAriaPropTypes/invalid.jsx b/crates/rome_js_analyze/tests/specs/nursery/useAriaPropTypes/invalid.jsx
index 4c19a20bc193..05542f30023a 100644
--- a/crates/rome_js_analyze/tests/specs/nursery/useAriaPropTypes/invalid.jsx
+++ b/crates/rome_js_analyze/tests/specs/nursery/useAriaPropTypes/invalid.jsx
@@ -1,8 +1,15 @@
var a = ;
var a = ;
var a = ;
+var a = ;
+var a = ;
var a = ;
var a = ;
var a = ;
var a = ;
+var a = ;
var a = ;
+var a = ;
+var a = ;
+var a = ;
+var a = ;
diff --git a/crates/rome_js_analyze/tests/specs/nursery/useAriaPropTypes/invalid.jsx.snap b/crates/rome_js_analyze/tests/specs/nursery/useAriaPropTypes/invalid.jsx.snap
index 931c89447228..8a9958050565 100644
--- a/crates/rome_js_analyze/tests/specs/nursery/useAriaPropTypes/invalid.jsx.snap
+++ b/crates/rome_js_analyze/tests/specs/nursery/useAriaPropTypes/invalid.jsx.snap
@@ -7,11 +7,18 @@ expression: invalid.jsx
var a = ;
var a = ;
var a = ;
+var a = ;
+var a = ;
var a = ;
var a = ;
var a = ;
var a = ;
+var a = ;
var a = ;
+var a = ;
+var a = ;
+var a = ;
+var a = ;
```
@@ -26,6 +33,12 @@ invalid.jsx:1:31 lint/nursery/useAriaPropTypes ━━━━━━━━━━━
2 │ var a = ;
3 │ var a = ;
+ i The only supported value for the aria-checked one of the following:
+
+ - true
+ - false
+ - mixed
+
```
@@ -38,9 +51,9 @@ invalid.jsx:2:15 lint/nursery/useAriaPropTypes ━━━━━━━━━━━
> 2 │ var a = ;
│ ^^^^^^^^^^^^^^^^^^^^^^^^
3 │ var a = ;
- 4 │ var a = ;
+ 4 │ var a = ;
- i The supported values for the aria-autocomplete attribute are:
+ i The only supported value for the aria-autocomplete is one of the following:
- inline
- list
@@ -59,10 +72,10 @@ invalid.jsx:3:15 lint/nursery/useAriaPropTypes ━━━━━━━━━━━
2 │ var a = ;
> 3 │ var a = ;
│ ^^^^^^^^^^^^^^^^^^
- 4 │ var a = ;
- 5 │ var a = ;
+ 4 │ var a = ;
+ 5 │ var a = ;
- i The supported values for the aria-invalid attribute are:
+ i The only supported value for the aria-invalid is one of the following:
- grammar
- false
@@ -75,14 +88,21 @@ invalid.jsx:3:15 lint/nursery/useAriaPropTypes ━━━━━━━━━━━
```
invalid.jsx:4:15 lint/nursery/useAriaPropTypes ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
- ! The value of the ARIA attribute aria-errormessage is not correct.
+ ! The value of the ARIA attribute aria-invalid is not correct.
2 │ var a = ;
3 │ var a = ;
- > 4 │ var a = ;
+ > 4 │ var a = ;
│ ^^^^^^^^^^^^^^^^^^^^
- 5 │ var a = ;
- 6 │ var a = ;
+ 5 │ var a = ;
+ 6 │ var a = ;
+
+ i The only supported value for the aria-invalid is one of the following:
+
+ - grammar
+ - false
+ - spelling
+ - true
```
@@ -90,16 +110,55 @@ invalid.jsx:4:15 lint/nursery/useAriaPropTypes ━━━━━━━━━━━
```
invalid.jsx:5:15 lint/nursery/useAriaPropTypes ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
- ! The value of the ARIA attribute aria-relevant is not correct.
+ ! The value of the ARIA attribute aria-invalid is not correct.
3 │ var a = ;
- 4 │ var a = ;
- > 5 │ var a = ;
+ 4 │ var a = ;
+ > 5 │ var a = ;
+ │ ^^^^^^^^^^^^^^^^^^^^
+ 6 │ var a = ;
+ 7 │ var a = ;
+
+ i The only supported value for the aria-invalid is one of the following:
+
+ - grammar
+ - false
+ - spelling
+ - true
+
+
+```
+
+```
+invalid.jsx:6:15 lint/nursery/useAriaPropTypes ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
+
+ ! The value of the ARIA attribute aria-errormessage is not correct.
+
+ 4 │ var a = ;
+ 5 │ var a = ;
+ > 6 │ var a = ;
+ │ ^^^^^^^^^^^^^^^^^^^^
+ 7 │ var a = ;
+ 8 │ var a = ;
+
+ i The only supported value is text.
+
+
+```
+
+```
+invalid.jsx:7:15 lint/nursery/useAriaPropTypes ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
+
+ ! The value of the ARIA attribute aria-relevant is not correct.
+
+ 5 │ var a = ;
+ 6 │ var a = ;
+ > 7 │ var a = ;
│ ^^^^^^^^^^^^^^^^^^^^^
- 6 │ var a = ;
- 7 │ var a = ;
+ 8 │ var a = ;
+ 9 │ var a = ;
- i The supported values for the aria-relevant attribute are:
+ i The values supported for aria-relevant are one or more of the following:
- additions
- all
@@ -110,45 +169,147 @@ invalid.jsx:5:15 lint/nursery/useAriaPropTypes ━━━━━━━━━━━
```
```
-invalid.jsx:6:15 lint/nursery/useAriaPropTypes ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
+invalid.jsx:8:15 lint/nursery/useAriaPropTypes ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
! The value of the ARIA attribute aria-labelledby is not correct.
- 4 │ var a = ;
- 5 │ var a = ;
- > 6 │ var a = ;
- │ ^^^^^^^^^^^^^^^^^^
- 7 │ var a = ;
- 8 │ var a = ;
+ 6 │ var a = ;
+ 7 │ var a = ;
+ > 8 │ var a = ;
+ │ ^^^^^^^^^^^^^^^^^^
+ 9 │ var a = ;
+ 10 │ var a = ;
+
+ i The only supported value is text.
```
```
-invalid.jsx:7:15 lint/nursery/useAriaPropTypes ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
+invalid.jsx:9:15 lint/nursery/useAriaPropTypes ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
! The value of the ARIA attribute aria-labelledby is not correct.
- 5 │ var a = ;
- 6 │ var a = ;
- > 7 │ var a = ;
- │ ^^^^^^^^^^^^^^^^^^^^
- 8 │ var a = ;
- 9 │
+ 7 │ var a = ;
+ 8 │ var a = ;
+ > 9 │ var a = ;
+ │ ^^^^^^^^^^^^^^^^^^^^
+ 10 │ var a = ;
+ 11 │ var a = ;
+
+ i The only supported value is text.
```
```
-invalid.jsx:8:15 lint/nursery/useAriaPropTypes ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
+invalid.jsx:10:15 lint/nursery/useAriaPropTypes ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
+
+ ! The value of the ARIA attribute aria-labelledby is not correct.
+
+ 8 │ var a = ;
+ 9 │ var a = ;
+ > 10 │ var a = ;
+ │ ^^^^^^^^^^^^^^^^^^^^
+ 11 │ var a = ;
+ 12 │ var a = ;
+
+ i The only supported value is text.
+
+
+```
+
+```
+invalid.jsx:11:15 lint/nursery/useAriaPropTypes ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
! The value of the ARIA attribute aria-details is not correct.
- 6 │ var a = ;
- 7 │ var a = ;
- > 8 │ var a = ;
- │ ^^^^^^^^^^^^^^^
- 9 │
+ 9 │ var a = ;
+ 10 │ var a = ;
+ > 11 │ var a = ;
+ │ ^^^^^^^^^^^^^^^
+ 12 │ var a = ;
+ 13 │ var a = ;
+
+ i The only supported value is text.
+
+
+```
+
+```
+invalid.jsx:12:15 lint/nursery/useAriaPropTypes ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
+
+ ! The value of the ARIA attribute aria-setsize is not correct.
+
+ 10 │ var a = ;
+ 11 │ var a = ;
+ > 12 │ var a = ;
+ │ ^^^^^^^^^^^^^^^^^^
+ 13 │ var a = ;
+ 14 │ var a = ;
+
+ i The only value supported is a number without fractional components.
+
+
+```
+
+```
+invalid.jsx:13:15 lint/nursery/useAriaPropTypes ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
+
+ ! The value of the ARIA attribute aria-valuemax is not correct.
+
+ 11 │ var a = ;
+ 12 │ var a = ;
+ > 13 │ var a = ;
+ │ ^^^^^^^^^^^^^^^^^^^
+ 14 │ var a = ;
+ 15 │ var a = ;
+
+ i The only supported value is number.
+
+
+```
+
+```
+invalid.jsx:14:15 lint/nursery/useAriaPropTypes ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
+
+ ! The value of the ARIA attribute aria-dropeffect is not correct.
+
+ 12 │ var a = ;
+ 13 │ var a = ;
+ > 14 │ var a = ;
+ │ ^^^^^^^^^^^^^^^^^^^^^
+ 15 │ var a = ;
+ 16 │
+
+ i The values supported for aria-dropeffect are one or more of the following:
+
+ - copy
+ - execute
+ - link
+ - move
+ - none
+ - popup
+
+
+```
+
+```
+invalid.jsx:15:15 lint/nursery/useAriaPropTypes ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
+
+ ! The value of the ARIA attribute aria-orientation is not correct.
+
+ 13 │ var a = ;
+ 14 │ var a = ;
+ > 15 │ var a = ;
+ │ ^^^^^^^^^^^^^^^^^^^^^^
+ 16 │
+
+ i The only supported value for the aria-orientation is one of the following:
+
+ - vertical
+ - undefined
+ - horizontal
```
diff --git a/website/src/pages/lint/rules/useAriaPropTypes.md b/website/src/pages/lint/rules/useAriaPropTypes.md
index 58fbd66da1e8..9971ebfc5857 100644
--- a/website/src/pages/lint/rules/useAriaPropTypes.md
+++ b/website/src/pages/lint/rules/useAriaPropTypes.md
@@ -23,6 +23,12 @@ Enforce that ARIA state and property values are valid.
│ ^^^^^^^^^^^^^^^^^^^
2 │
+ ℹ The only supported value for the aria-checked one of the following:
+
+ - true
+ - false
+ - mixed
+
```jsx
@@ -37,6 +43,44 @@ Enforce that ARIA state and property values are valid.
│ ^^^^^^^^^^^^^^^^^^
2 │
+ ℹ The only supported value is text.
+
+
+
+```jsx
+some text
+```
+
+nursery/useAriaPropTypes.js:1:7 lint/nursery/useAriaPropTypes ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
+
+ ⚠ The value of the ARIA attribute aria-valuemax is not correct.
+
+ > 1 │ <span aria-valuemax="hey">some text</span>
+ │ ^^^^^^^^^^^^^^^^^^^
+ 2 │
+
+ ℹ The only supported value is number.
+
+
+
+```jsx
+some text
+```
+
+nursery/useAriaPropTypes.js:1:7 lint/nursery/useAriaPropTypes ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
+
+ ⚠ The value of the ARIA attribute aria-orientation is not correct.
+
+ > 1 │ <span aria-orientation="hey">some text</span>
+ │ ^^^^^^^^^^^^^^^^^^^^^^
+ 2 │
+
+ ℹ The only supported value for the aria-orientation is one of the following:
+
+ - vertical
+ - undefined
+ - horizontal
+
### Valid