Socket
Book a DemoInstallSign in
Socket

@kiwi-lib/eslint-config

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kiwi-lib/eslint-config

latest
npmnpm
Version
2.0.0
Version published
Maintainers
1
Created
Source

Eslint Config

Usage

1. Install

1.1 Install package

y add -D @kiwi-lib/eslint-config

1.2 Install dependencies, if you use yarn berry

y add -D @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint eslint-config-prettier eslint-plugin-import eslint-plugin-prettier prettier

2. config eslint

Edit your .eslintrc.js

module.exports = {
	extends: ['@kiwi-lib'],
	// or
  	// extends: ['@kiwi-lib/eslint-config'],
}

3. config prettier

Edit your package.json

{
	"prettier": "@kiwi-lib/eslint-config/prettier.config"
}

4. Create tsconfig.eslint.json

Add the path to be linted to "include" and not to be linted to "exclude"

{
	"extends": "./tsconfig.json",
	"include": ["src", "test"],
	"exclude": ["node_modules"]
}

Keywords

kiwi-lib

FAQs

Package last updated on 20 Nov 2022

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