@tkpd/eslint-config-ts
v0.0.14
Published
Shared eslint typescript config for Tokopedia projects
Downloads
1
Readme
@tkpd/eslint-config-ts
Shareable ESLint configuration for tokopedia web services.
@tkpd/eslint-config-ts is a shareable configuration package for eslint designed to meet Tokopedia standard.
Installation
# npm
$ npm install -D eslint@8 @tokopedia/eslint-config
# yarn
$ yarn add -D eslint@8 @tokopedia/eslint-config
# pnpm
$ pnpm add -D eslint@8 @tokopedia/eslint-config
Also, this config requires you to install basic peer dependencies
# npm
$ npm install -D @typescript-eslint/eslint-plugin@6 @typescript-eslint/parser@6 eslint-import-resolver-typescript eslint-plugin-import
# yarn
$ yarn add -D @typescript-eslint/eslint-plugin@6 @typescript-eslint/parser@6 eslint-import-resolver-typescript eslint-plugin-import
# pnpm
$ npm add -D @typescript-eslint/eslint-plugin@6 @typescript-eslint/parser@6 eslint-import-resolver-typescript eslint-plugin-import
Add this into your eslint configuration file
.eslintrc
{
"extends": "@tkpd/ts"
}
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.