eslint-config-baoshuo
v0.0.2
Published
ESLint config for Baoshuo's projects.
Downloads
20
Maintainers
Readme
eslint-config-baoshuo
ESLint config for Baoshuo.
Installation
npm i -D eslint eslint-config-baoshuo eslint-plugin-prettier prettier prettier-plugin-organize-imports
# or
yarn add -D eslint eslint-config-baoshuo eslint-plugin-prettier prettier prettier-plugin-organize-imports
Usage
Add following snippets to your ESLint configuration files.
Node.js Project
npm i -D eslint-plugin-node eslint-plugin-import
# or use yarn:
yarn add -D eslint-plugin-node eslint-plugin-import
{
"extends": "baoshuo/node"
}
TypeScript Project
npm i -D typescript @typescript-eslint/parser @typescript-eslint/eslint-plugin eslint-plugin-import eslint-import-resolver-typescript
# or use yarn:
yarn add -D typescript @typescript-eslint/parser @typescript-eslint/eslint-plugin eslint-plugin-import eslint-import-resolver-typescript
{
"extends": "baoshuo/typescript"
}
React Project
npm i -D eslint-plugin-react-hooks eslint-plugin-react eslint-plugin-jsx-a11y
# or use yarn:
yarn add -D eslint-plugin-react-hooks eslint-plugin-react eslint-plugin-jsx-a11y
{
"extends": "baoshuo/react"
}
Maintainer
eslint-config-baoshuo © Baoshuo, Released under the MIT License.
This project is inspired by SukkaW/eslint-config-sukka.
Personal Website · Blog · GitHub @renbaoshuo · Twitter @renbaoshuo