react-intl specific linting rules for ESLint
MIT License
Note: This is a fork from http://npmjs.org/package/eslint-plugin-react-intl.
react-intl (2.0) specific linting rules for ESLint
Install ESLint either locally or globally.
$ npm install eslint
If you installed ESLint
globally, you have to install React-intl plugin globally too. Otherwise, install it locally.
$ npm install eslint-plugin-react-intl
Add plugins
section and specify ESLint-plugin-React as a plugin.
{
"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:
{
"ecmaFeatures": {
"jsx": true
}
}
With ESLint 2.x.x:
{
"parserOptions": {
"ecmaFeatures": {
"jsx": true
}
}
}
defaultMessage
attributes that aren't valid ICU message syntaxformatMessage()
from using literal translations, because there are not picked up by babel-plugin-react-intl.ESLint-plugin-React-intl is licensed under the MIT License.