From bfa1970d58e6cc31da95dcdcda270abda96df784 Mon Sep 17 00:00:00 2001 From: notmd <33456881+notmd@users.noreply.github.com> Date: Wed, 7 Dec 2022 23:51:26 +0700 Subject: [PATCH] feat(rome_js_analyze): implement `noRedundantAlt` rule (#3964) Co-authored-by: Emanuele Stoppa Resolve https://github.com/rome/tools/issues/3938 --- configuration_schema.json | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/configuration_schema.json b/configuration_schema.json index 409b7b9f..9184638d 100644 --- a/configuration_schema.json +++ b/configuration_schema.json @@ -720,6 +720,17 @@ } ] }, + "noRedundantAlt": { + "description": "Enforce img alt prop does not contain the word \"image\", \"picture\", or \"photo\".", + "anyOf": [ + { + "$ref": "#/definitions/RuleConfiguration" + }, + { + "type": "null" + } + ] + }, "noRedundantUseStrict": { "description": "Prevents from having redundant \"use strict\".", "anyOf": [