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.
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
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" |