0.0.2 • Published 8 years ago

eslint-plugin-hss-i18n v0.0.2

Weekly downloads
153
License
ISC
Repository
-
Last release
8 years ago

eslint-plugin-hss-i18n

Detect common errors when using I18n at Hearsay Social

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-hss-i18n:

$ npm install eslint-plugin-hss-i18n --save-dev

Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-hss-i18n globally.

Usage

Add i18n to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": [
        "hss-i18n"
    ]
}

Then configure the rules you want to use under the rules section.

{
    "rules": {
        "hss-i18n/no-interpolate-literal": "error",
        "hss-i18n/require-gettext-literal": "error"
    }
}

Supported Rules