Skip to content
This repository has been archived by the owner on Jul 15, 2021. It is now read-only.

notarize/eslint-plugin-react-intl-ensure

Repository files navigation

ESLint Plugin React Intl Ensure

ESLint plugin that ensures your intl is up to spec.

Installation

npm i @notarize/eslint-plugin-react-intl-ensure --save-dev
# or
yarn add --dev @notarize/eslint-plugin-react-intl-ensure

Usage

Configure in your eslint config file:

{
  "plugins": ["@notarize/react-intl-ensure"],
  "rules": {
    "@notarize/react-intl-ensure/id-is-valid-uuid": "error"
  }
}

Rules

Name Description
@notarize/react-intl-ensure/id-is-valid-uuid Require that calls to defineMessages and FormattedMessage have UUID IDs. The --fix option will overwrite the ID with a UUID.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published