eslint-config-ybiquitous
v21.1.0
Published
Personal ESLint configuration
Downloads
599
Readme
eslint-config-ybiquitous
My personal ESLint configuration.
This package purpose is to collect some tips and plugins.
For more details about plugins used in this package,
please check dependencies
field in package.json.
Install
When not using TypeScript:
npm install --save-dev eslint-config-ybiquitous eslint prettier
When using TypeScript, install the following in addition:
npm install --save-dev @typescript-eslint/eslint-plugin
Usage
Edit your .eslintrc.*
file according to some following cases:
| Case | Setting |
| ---------- | ---------------------------------- |
| Basic | extends: "ybiquitous"
|
| Node.js | extends: "ybiquitous/node"
|
| Browser | extends: "ybiquitous/browser"
|
| React | extends: "ybiquitous/react"
|
| TypeScript | extends: "ybiquitous/typescript"
|