Skip to content
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.

binary-com/eslint-plugin-localize-usage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Repository Relocation Notice

This repository has been relocated to the deriv-com organization. Please access it at the following URL: eslint-plugin-localize-usage

Thank you!


@deriv/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 @deriv/eslint-plugin-localize-usage:

$ npm install @deriv/eslint-plugin-localize-usage --save-dev

Note: If you installed ESLint globally (using the -g flag) then you must also install @deriv/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": ["@deriv/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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •