Skip to main content
Skip to Content
interlace
Plugin: react-a11yRules

accessible-emoji

Deprecated no-op kept so eslint-plugin-jsx-a11y configs naming it load; it reports nothing.

Next step

accessible-emoji ships in eslint-plugin-react-a11y, with 37 of its 40 rules in the recommended preset.

Install
npm install -D eslint-plugin-react-a11y
eslint.config.js
import { configs } from 'eslint-plugin-react-a11y';

export default [configs.recommended];

Plugin pagenpmSource on GitHub

Upstream's rule asked for emoji to be wrapped in a span with role="img" and an aria-label. jsx-a11y 6.10.2 deprecates it without naming a replacement. This rule is a no-op.

Quick Summary

AspectDetails
StatusDeprecated (meta.deprecated: true)
ReportsNothing
In presetsNo preset enables it
OptionsAn 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 accessible-emoji, or a // eslint-disable-next-line jsx-a11y/accessible-emoji 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/accessible-emoji': 'off' },
  },
];

Further Reading

Use this rule

npm install -D eslint-plugin-react-a11y
eslint.config.js
import reactA11y from 'eslint-plugin-react-a11y';export default [  {    plugins: { 'react-a11y': reactA11y },    rules: {      'react-a11y/accessible-emoji': 'error'    },  },];
npm install -D oxlint-plugin-react-a11y
.oxlintrc.json
{  "jsPlugins": ["oxlint-plugin-react-a11y"],  "rules": {    "react-a11y/accessible-emoji": "error"  }}
vite.config.ts
import { defineConfig } from 'vite-plus';export default defineConfig({  lint: {    jsPlugins: ['oxlint-plugin-react-a11y'],    rules: {      'react-a11y/accessible-emoji': '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.