You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These were wrong previously due to the fields having different names in the config object than the actual configuration passed to the rule. The docs will now match the result we expect to see from the
Also updated the tests to cover more cases, and found a few places where the current logic is problematic.
Generated docs:
```md
## Configuration
This rule accepts a configuration object with the following properties:
### components
type: `string[]`
default: `["img"]`
JSX element types to validate (component names) where the rule applies.
For example, `["img", "Image"]`.
### words
type: `string[]`
default: `["image", "photo", "picture"]`
Words considered redundant in alt text that should trigger a warning.
```
.with_help("Provide no redundant alt text for image. Screen-readers already announce `img` tags as an image. You don't need to use the words `image`, `photo,` or `picture` (or any specified custom words) in the `alt` prop.").with_label(span)
26
+
.with_help("Provide no redundant alt text for image. Screen-readers already announce `img` tags as an image. You don't need to use the words `image`, `photo`, or `picture` (or any specified custom words) in the `alt` prop.").with_label(span)
0 commit comments