1.0.3 • Published 3 years ago

eslint-plugin-i18n-plus v1.0.3

Weekly downloads
17
License
ISC
Repository
github
Last release
3 years ago

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
    }
}

Supported Rules