@kiwi-lib/eslint-config

2.0.0 • Public • Published

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"]
}

Readme

Keywords

Package Sidebar

Install

npm i @kiwi-lib/eslint-config

Weekly Downloads

3

Version

2.0.0

License

MIT

Unpacked Size

2.09 kB

Total Files

6

Last publish

Collaborators

  • whitekiwi