Socket
Book a DemoInstallSign in
Socket

@deriv/eslint-plugin-localize-usage

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@deriv/eslint-plugin-localize-usage

ESLint rules for enforcing the usage of localize function and component

latest
Source
npmnpm
Version
1.1.2-beta
Version published
Maintainers
2
Created
Source

@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

Keywords

eslint

FAQs

Package last updated on 13 Jul 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts