no-access-key
Configuration
rslint.config.ts
Rule Details
This rule disallows the accessKey prop on JSX elements. The attribute
name is matched case-insensitively, so accesskey, accessKey, and
acCesSKeY are all checked. Access-key shortcuts assigned through this
prop frequently conflict with the keyboard commands used by screen
readers and keyboard-only users, causing accessibility regressions.
The rule reports an element whenever it carries an accessKey attribute
whose value resolves to a truthy JavaScript value. An attribute whose
value is undefined, null, false, 0, or the empty string is left
alone.
This rule takes no arguments.
Examples of incorrect code for this rule:
Examples of correct code for this rule: