Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@lite-v3/eslint-plugin

Package Overview
Dependencies
Maintainers
4
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lite-v3/eslint-plugin

ESLint rules for tokopedia web services.

  • 1.4.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
356
decreased by-38.41%
Maintainers
4
Weekly downloads
 
Created
Source

eslint-plugin-loadable-component

ESLint rules for tokopedia web services.

Installation

You'll first need to install ESLint:

pnpm add eslint --save-dev

Next, install eslint-plugin-tokopedia-lite:

pnpm add eslint-plugin-tokopedia-lite --save-dev

Usage

Note: This plugin doesn't have "recommended" rule set at the moment. We are currently still considering of the right rules to be the recommended default set. Please make sure to enable rules based on your needs.

To get started, add tokopedia-lite to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
  "plugins": ["tokopedia-lite"]
}

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

{
  "rules": {
    "tokopedia-lite/no-workspace-url-deps": "error",
    "tokopedia-lite/no-window-checking": "warn",
    "tokopedia-lite/no-var-expression-dynamic-import": "error"
  }
}

Rules

NameTypeDocs
no-window-checkingPossible ErrorLink
no-var-expression-dynamic-importPossible ErrorLink
no-invalid-loadable-specifierPossible ErrorLink
no-empty-leading-comment-dynamic-importBest PracticeLink
jest-no-identical-titleBest PracticeTBD
jest-no-duplicate-hooksBest PracticeLink
json-no-pluggablesPossible ErrorLink
json-no-restricted-importsPossible ErrorLink
json-no-dependenciesPossible ErrorLink
wpe-lite-theme/ban-hex-colorsPossible ErrorLink

Disabling Rule

You can disable certain rule by using ESLint directive syntax (marked with #) to hint ESLint to disable in specific line or entire file. You can find a list of ESLint directives here.

# eslint-disable-next-line no-window-checking
if (window) {
    ...
}

FAQs

Package last updated on 21 May 2024

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc