Skip to content

jsx-no-literals proposal #3003

@stereobooster

Description

@stereobooster

My use case: I want to catch untranslated strings, for example

<p>hello</p>
<img alt="bird" />

which is supported, but also want to allow:

<Button color="primary" />

My proposal is to add config of props to be checked and default value can be:

["title", "alt", "aria-label", "aria-details", "placeholder"]

WDYT?

PS I'm a bit confused by ignoreProps vs noAttributeStrings.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions