Skip to content

[Fix] no-static-element-interactions, no-noninteractive-tabindex: add allowExpressionValues to schema#1086

Open
vmvenkatesh78 wants to merge 1 commit intojsx-eslint:mainfrom
vmvenkatesh78:fix/allow-expression-values-schema
Open

[Fix] no-static-element-interactions, no-noninteractive-tabindex: add allowExpressionValues to schema#1086
vmvenkatesh78 wants to merge 1 commit intojsx-eslint:mainfrom
vmvenkatesh78:fix/allow-expression-values-schema

Conversation

@vmvenkatesh78
Copy link
Copy Markdown

Fixes #1073.
Both no-static-element-interactions and no-noninteractive-tabindex destructure allowExpressionValues from options[0] and use it to determine whether non-literal role expressions should be allowed. The option is documented in both rules' docs, tested in both rules' test suites, and included in the recommended configuration examples.
However, neither rule declares allowExpressionValues in its JSON schema. This means ESLint rejects the option during config validation when additionalProperties checking is applied, even though the rule code handles it correctly.

Changes:
Add allowExpressionValues: { type: 'boolean' } to the schema for no-static-element-interactions
Add allowExpressionValues: { type: 'boolean' } to the schema for no-noninteractive-tabindex

No behavioral change. Existing tests pass unmodified

@vmvenkatesh78 vmvenkatesh78 force-pushed the fix/allow-expression-values-schema branch from 62728d2 to abfe955 Compare April 13, 2026 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing allowExpressionValues option in schemas for no-static-element-interactions and no-noninteractive-tabindex rules

1 participant