2.0.1 • Published 2 months ago

@tokopedia/eslint-config v2.0.1

Weekly downloads
-
License
SEE LICENSE IN LI...
Repository
github
Last release
2 months ago

@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

$ pnpm add --save-dev eslint @tokopedia/eslint-config

Also, this config requires you to install basic peer dependencies

$ npm i --save-dev @babel/eslint-parser @lite-v3/eslint-plugin eslint-plugin-import eslint-plugin-jest@22 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 and .jsx supporteslint-plugin-react eslint-plugin-react-hooks eslint-plugin-jsx-a11y
@tokopedia/eslint-config/svelteSvelte supporteslint-plugin-svelte3
@tokopedia/eslint-config/typescriptTypeScript support@typescript-eslint/parser @typescript-eslint/eslint-plugin
@tokopedia/eslint-config/pluggablesReact and Pluggables supporteslint-plugin-react eslint-plugin-react-hooks eslint-plugin-jsx-a11y eslint-plugin-json
@tokopedia/eslint-config/wpe-lite-themeWPE Lite Theme custom ESLint-

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.

2.0.1

2 months ago