# eslint-plugin-react-intl **Repository Path**: mirrors_elastic/eslint-plugin-react-intl ## Basic Information - **Project Name**: eslint-plugin-react-intl - **Description**: react-intl specific linting rules for ESLint - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-08 - **Last Updated**: 2025-09-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README eslint-plugin-react-intl =================== Note: This is a fork from http://npmjs.org/package/eslint-plugin-react-intl. react-intl (2.0) specific linting rules for ESLint # Installation Install [ESLint](https://www.github.com/eslint/eslint) either locally or globally. ```sh $ npm install eslint ``` If you installed `ESLint` globally, you have to install React-intl plugin globally too. Otherwise, install it locally. ```sh $ npm install eslint-plugin-react-intl ``` # Configuration Add `plugins` section and specify ESLint-plugin-React as a plugin. ```json { "plugins": [ "@elastic/eslint-plugin-react-intl" ] } ``` If it is not already the case you must also configure `ESLint` to support JSX. With ESLint 1.x.x: ```json { "ecmaFeatures": { "jsx": true } } ``` With ESLint 2.x.x: ```json { "parserOptions": { "ecmaFeatures": { "jsx": true } } } ``` # List of supported rules * string-is-marked-for-translation: Catch strings that aren't marked for translation, e.g. contained in a component from react-intl 2.0. * is-valid-icu-message-syntax: Catch `defaultMessage` attributes that aren't valid ICU message syntax * no-inline-translations-with-formatmessage: Forbid calls to `formatMessage()` from using literal translations, because there are not picked up by [babel-plugin-react-intl]. # Thanks * [Eslint-plugin-React](https://github.com/yannickcr/eslint-plugin-react) by [Yannick Croissant](https://github.com/yannickcr), where many parts of this plugin were lifted from. # License ESLint-plugin-React-intl is licensed under the [MIT License](http://www.opensource.org/licenses/mit-license.php). [npm-url]: https://npmjs.org/package/eslint-plugin-react-intl [babel-plugin-react-intl]: https://github.com/yahoo/babel-plugin-react-intl