eslint-plugin-i18n-plus
v1.0.3
Published
The plugin for validating i18n translations in react applications
Downloads
29
Maintainers
Readme
eslint-plugin-i18n-plus
The plugin for validating i18n translations in react applications
Installation
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install eslint-plugin-i18n-plus
:
$ npm install eslint-plugin-i18n-plus --save-dev
Note: If you installed ESLint globally (using the -g
flag) then you must also install eslint-plugin-i18n-plus
globally.
Usage
Add i18n-plus
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"i18n-plus"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"i18n-plus/rule-name": 2
}
}