React-intl specific linting rules for ESLint
npm install eslint-plugin-react-intlESLint-plugin-React-intl
===================
React-intl (2.0) specific linting rules for ESLint
Install 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
Add plugins section and specify ESLint-plugin-React as a plugin.
`json`
{
"plugins": [
"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
}
}
}
* string-is-marked-for-translation: Catch strings that aren't marked for translation, e.g. contained in a
* is-valid-icu-message-syntax: Catch defaultMessage` attributes that aren't valid ICU message syntax
ESLint-plugin-React-intl is licensed under the MIT License.
[npm-url]: https://npmjs.org/package/eslint-plugin-react-intl