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

@tokopedia/eslint-config

Package Overview
Dependencies
Maintainers
6
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tokopedia/eslint-config

ESLint configuration for tokopedia web services

  • 0.0.1
  • unpublished
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
6
Created
Source

@tokopedia/eslint-config

Shareable ESLint configuration for tokopedia web services.

@tokopedia/eslint-config is a shareable configuration package for eslint modified to meet tokopedia own standards.

Installation

# Using NPM
$ npm i --save-dev eslint @tokopedia/eslint-config

# Using Yarn
$ yarn add --dev eslint @tokopedia/eslint-config

# Using PNPM
$ pnpm install --save-dev eslint @tokopedia/eslint-config

Also, this config requires you to install basic peer dependencies

npm i --save-dev eslint-plugin-tokopedia-lite eslint-plugin-import eslint-plugin-jest eslint-plugin-jest-dom eslint-plugin-json eslint-plugin-jsx-a11y  eslint-plugin-prettier

Usage Overview

There are several ways to incorporate this eslint configuration into your project.

Step 1

Add this into your eslint configuration file

{
  "extends": "@tokopedia/eslint-config"
}

Step 2 (Optional)

Select additional configurations. These require you to add dependencies to your project: npm i --save-dev <additional deps>.

CongigurationDescriptionAdditional Dependencies
@tokopedia/eslint-config/reactReact.js and .jsx supporteslint-plugin-react eslint-plugin-react-hooks eslint-plugin-svelte3
@tokopedia/eslint-config/svelteSvelte supporteslint-plugin-svelte3
@tokopedia/eslint-config/typescriptTypeScript support@typescript-eslint/parser @typescript-eslint/eslint-plugin

NOTE: You must use a .eslintrc file to specify multiple configurations. Set the extends property to an array containing the Target Environment and one or more addon configurations.

FAQs

Package last updated on 25 Mar 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