eslint-plugin-localize-usage

1.0.6 • Public • Published

eslint-plugin-localize-usage

Eslint rules for enforcing the correct usage of localize function and Localize component in the app

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-localize-usage:

$ npm install eslint-plugin-localize-usage --save-dev

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

Usage

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

{
  "plugins": ["localize-usage"]
}

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

{
  "rules": {
    "localize-usage/rule-name": "error"
  }
}

You can also use the recommended config instead

{
  "extends": ["plugin:localize-usage/recommended"]
}

Supported Rules

Package Sidebar

Install

npm i eslint-plugin-localize-usage

Weekly Downloads

13

Version

1.0.6

License

MIT

Unpacked Size

19.5 kB

Total Files

13

Last publish

Collaborators

  • amir-deriv