@leocode/eslint-config
v2.0.0
Published
## Installation
Downloads
16
Readme
LEOCODE's ESLint config
Installation
- Install all peer dependencies. You can use your favourite tool or just type:
For React:
yarn add --dev eslint@8 @typescript-eslint/eslint-plugin@5 @typescript-eslint/parser@5 [email protected] [email protected] typescript@4
For Node:
yarn add --dev eslint@8 @typescript-eslint/eslint-plugin@5 @typescript-eslint/parser@5 typescript@4
- Install package with configuration:
yarn add --dev @leocode/eslint-config
Usage
For node put this in .eslintrc.js
file:
module.exports = {
extends: ['@leocode/eslint-config/node'],
};
For React put this in .eslintrc.js
file:
module.exports = {
extends: ['@leocode/eslint-config/react'],
};
License
MIT