1.0.3 • Published 5 years ago
eslint-plugin-i18n-plus v1.0.3
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-devNext, install eslint-plugin-i18n-plus:
$ npm install eslint-plugin-i18n-plus --save-devNote: 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
}
}