Skip to content

Commit

Permalink
feat(rome_js_analyze): implement noRedundantAlt rule (#3964)
Browse files Browse the repository at this point in the history
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
Resolve rome/tools#3938
  • Loading branch information
notmd authored Dec 7, 2022
1 parent 2ddc191 commit bfa1970
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions configuration_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down

0 comments on commit bfa1970

Please sign in to comment.