Skip to content

jsx-use-translation-function: Option to ignore punctuation #119

@whatisaphone

Description

@whatisaphone

It would be nice if there were a way to make this rule ignore non-alphabetical characters (unicode category letter), for cases like these:

function CloseButton() {
  return <div class="close">×</div>;
}

The character × is U+00D7: MULTIPLICATION SIGN

function Foo({ label, t }) {
  return <li>{t('label')}: {label}</li>;
}

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