0.0.3 • Published 5 years ago
eslint-plugin-i18nlint v0.0.3
eslint-plugin-i18nlint
A tool for helping you find and manage missing and unused translations
Installation
You'll first need to install ESLint:
$ npm i eslint --save-devNext, install eslint-plugin-i18nlint:
$ npm install eslint-plugin-i18nlint --save-devUsage
Add i18nlint to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": [
"i18nlint"
]
}Then configure the rules you want to use under the rules section.
{
"rules": {
"i18nlint/rule-name": 2
}
}Supported Rules
- i18nlint/chinese-should-be-translated: Enforces translating for Chinese