no-onchange
Deprecated no-op kept so eslint-plugin-jsx-a11y configs naming it load; it reports nothing.
Next step
no-onchange ships in eslint-plugin-react-a11y, with 37 of its 40 rules in the recommended preset.
npm install -D eslint-plugin-react-a11yimport { configs } from 'eslint-plugin-react-a11y';
export default [configs.recommended];
Upstream's rule asked for onBlur instead of onChange on a select. jsx-a11y 6.10.2 deprecates it without naming a replacement. This rule is a no-op.
Quick Summary
| Aspect | Details |
|---|---|
| Status | Deprecated (meta.deprecated: true) |
| Reports | Nothing |
| In presets | No preset enables it |
| Options | An object, as upstream's schema; nothing is read |
Why it exists
eslint-plugin-jsx-a11y 6.10.2 still exports this rule, deprecated. A config that registers this plugin under the jsx-a11y key and names no-onchange, or a // eslint-disable-next-line jsx-a11y/no-onchange comment, would otherwise stop ESLint with "Could not find rule". With this entry it loads and does nothing.
Configuration
// eslint.config.js
import reactA11y from 'eslint-plugin-react-a11y';
export default [
{
plugins: { 'jsx-a11y': reactA11y },
rules: { 'jsx-a11y/no-onchange': 'off' },
},
];Further Reading
Use this rule
npm install -D eslint-plugin-react-a11yimport reactA11y from 'eslint-plugin-react-a11y';export default [ { plugins: { 'react-a11y': reactA11y }, rules: { 'react-a11y/no-onchange': 'error' }, },];npm install -D oxlint-plugin-react-a11y{ "jsPlugins": ["oxlint-plugin-react-a11y"], "rules": { "react-a11y/no-onchange": "error" }}import { defineConfig } from 'vite-plus';export default defineConfig({ lint: { jsPlugins: ['oxlint-plugin-react-a11y'], rules: { 'react-a11y/no-onchange': 'error', }, },});oxlint-plugin-react-a11y re-exports eslint-plugin-react-a11y/oxlint: the same rules under the same IDs, and no ESLint install. Why oxlint.
Did this rule catch something? Star the repo to get new CWE coverage as we ship it — or follow the AI-code-security benchmarks behind these rules.