๐ a11y/noNoninteractiveElementToInteractiveRole doesn't support rule options
Closed this issue ยท 0 comments
Excalibaard commented
Environment information
CLI:
Version: 1.9.4
Color support: true
Platform:
CPU Architecture: aarch64
OS: macos
Environment:
BIOME_LOG_PATH: unset
BIOME_LOG_PREFIX_NAME: unset
BIOME_CONFIG_PATH: unset
NO_COLOR: unset
TERM: "xterm-256color"
JS_RUNTIME_VERSION: "v20.12.2"
JS_RUNTIME_NAME: "node"
NODE_PACKAGE_MANAGER: "pnpm/9.14.2"
Biome Configuration:
Error: options has an incorrect type, expected no value, but received an object.
Status: Loaded with errors
Formatter disabled: false
Linter disabled: false
Organize imports disabled: false
VCS disabled: true
What happened?
- Set "linter.rules.recommended: false" in the Biome config JSON.
- Set the following value for "linter.rules.a11y.noNoninteractiveElementToInteractiveRole":
{
"level": "error",
"options": {
"ul": ["listbox"]
}
}
- The Biome config is considered invalid, because
property 'options' is not allowed
andoptions has an incorrect type, expected no value, but received an object.
Expected result
I expect to be able set options for the rule, as described by the rule source.
In this case, specifically to whitelist the "listbox"
role on non-interactive ul
elements, which follows ARIA's listbox example implementation, and is part of the recommended options for this rule in the rule source.
Code of Conduct
- I agree to follow Biome's Code of Conduct