From dac686474692c038f22624c67a4f267448d6c3f3 Mon Sep 17 00:00:00 2001 From: Jesse Renee Beach Date: Sun, 21 Jun 2020 17:51:16 -0700 Subject: [PATCH] Deprecate the accessible-emoji rule --- docs/rules/accessible-emoji.md | 2 +- src/rules/accessible-emoji.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/rules/accessible-emoji.md b/docs/rules/accessible-emoji.md index ba55f4e04..f8920250a 100644 --- a/docs/rules/accessible-emoji.md +++ b/docs/rules/accessible-emoji.md @@ -1,4 +1,4 @@ -# accessible-emoji +# [Deprecated] accessible-emoji Emoji have become a common way of communicating content to the end user. To a person using a screenreader, however, he/she may not be aware that this content is there at all. By wrapping the emoji in a ``, giving it the `role="img"`, and providing a useful description in `aria-label`, the screenreader will treat the emoji as an image in the accessibility tree with an accessible name for the end user. diff --git a/src/rules/accessible-emoji.js b/src/rules/accessible-emoji.js index 26d329e9a..e74d8cce0 100644 --- a/src/rules/accessible-emoji.js +++ b/src/rules/accessible-emoji.js @@ -21,6 +21,7 @@ module.exports = { docs: { url: 'https://github.com/evcohen/eslint-plugin-jsx-a11y/tree/master/docs/rules/accessible-emoji.md', }, + deprecated: true, schema: [schema], },