# eslint-plugin-react-intl-universal

> ESLint plugin for React Intl Universal

Latest version **1.0.4** (published 2022-06-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install eslint-plugin-react-intl-universal
pnpm add eslint-plugin-react-intl-universal
yarn add eslint-plugin-react-intl-universal
bun add eslint-plugin-react-intl-universal
```

## Health

**Score 40/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2022-06-21 |
| First published | 2022-06-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 36.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Victor Soares |
| Maintainers | vitu.soares |
| Keywords | eslint, typescript, react-intl, intl, i18n, internationalization, react-intl-universal |

## Links

- npm: https://www.npmjs.com/package/eslint-plugin-react-intl-universal
- Repository: https://github.com/victorsoares96/eslint-plugin-react-intl-universal
- Homepage: https://github.com/victorsoares96/eslint-plugin-react-intl-universal#readme
- Issues: https://github.com/victorsoares96/eslint-plugin-react-intl-universal/issues
- npm.io page: https://npm.io/package/eslint-plugin-react-intl-universal

## Dependencies (1)

- [lodash](https://npm.io/package/lodash.md) ^4.17.21

## Alternatives

- [messageformat](https://npm.io/package/messageformat.md) — 329.7K weekly downloads
- [@mintlify/scraping](https://npm.io/package/@mintlify/scraping.md) — 294.8K weekly downloads
- [@mintlify/previewing](https://npm.io/package/@mintlify/previewing.md) — 209.5K weekly downloads
- [@mintlify/prebuild](https://npm.io/package/@mintlify/prebuild.md) — 209.5K weekly downloads
- [@mintlify/link-rot](https://npm.io/package/@mintlify/link-rot.md) — 206.3K weekly downloads

## Recent versions

- 1.0.4 (latest) — 2022-06-21
- 1.0.3 — 2022-06-20
- 1.0.2 — 2022-06-19
- 1.0.1 — 2022-06-19
- 1.0.0 — 2022-06-19

## README

eslint-plugin-react-intl-universal
===================

[react-intl-universal](https://github.com/alibaba/react-intl-universal) linting rules for Alibaba React Intl Universal internationalization library.

## Installation

```sh
$ npm install eslint-plugin-react-intl-universal --save-dev
```
```sh
$ yarn add -D eslint-plugin-react-intl-universal
```

## Usage

Add `react-intl-universal` to the plugins section of your `.eslintrc` configuration file.

```json
{
  "plugins": ["react-intl-universal"]
}
```

Then configure the rules you want to use under the rules section.

```json
{
  "rules": {
    "react-intl-universal/no-literal-string": "error",
    "react-intl-universal/id-missing": ["error", { "locales": ["src/locales/en-US.json"] }]
  }
}
```

or

```json
{
  "extends": ["plugin:react-intl-universal/recommended"]
}
```

* By default `id-missing` rule, list of locale files, defaults to `['locales/en-US.json']`

## Supported Rules

* [id-missing](src/docs/id-missing.md) - This rule was based on the rule in this repository.
* [no-literal-string](src/docs/no-literal-string.md) - This rule aims to avoid developers to display literal string directly to users without translating them.

## Thanks
* [eslint-plugin-react-intl](https://github.com/godaddy/eslint-plugin-react-intl) by [GoDaddy](https://github.com/godaddy), many parts of my project were based on yours.
* [eslint-plugin-i18next](https://github.com/edvardchen/eslint-plugin-i18next) by [edvardchen](https://github.com/edvardchen), i made an adaptation of the **no-literal-string** created by him in my project.

## License

eslint-plugin-react-intl-universal is licensed under the [MIT License](http://www.opensource.org/licenses/mit-license.php).

---
_Source: https://npm.io/package/eslint-plugin-react-intl-universal · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
