eslint-plugin-react-intl-extractor

0.1.2 • Public • Published

ESLint React Intl extractor

This ESLint plugin will:

  • Report duplicate messageIds with different defaultMessages.
  • Collect and dump messageIds and defaultMessages into a target dir/locale.json file.

Configuration

Provide dir and locale to enable storing of extracted locale data.

{
  "rules": {
    "react-intl-extractor/message-collector": [
        "error",
        {
          "dir": "src/translations",
          "locale": "en"
        }
    ]
  }
}

TODO

Tests need some work.

Dependents (0)

Package Sidebar

Install

npm i eslint-plugin-react-intl-extractor

Weekly Downloads

1

Version

0.1.2

License

ISC

Unpacked Size

13.7 kB

Total Files

17

Last publish

Collaborators

  • tcmug