npm.io
0.4.2 • Published 4 years ago

eslint-config-wzx-react

Licence
MIT
Version
0.4.2
Deps
5
Size
14 kB
Vulns
0
Weekly
0
Stars
4

eslint-config-wzx-react

NPM version node Code Style GitHub Workflow Status (branch) release codecov NPM downloads

The custom react eslint rules based on eslint-config-wzx. (Follow airbnb and Support Typescript Eslint)

Installation

npm install --save-dev eslint-config-wzx-react

Typescript eslint needs to install typescript, @typescript-eslint/parser, @typescript-eslint/eslint-plugin.

npm install --save-dev typescript @typescript-eslint/parser @typescript-eslint/eslint-plugin

Usage

Add eslint-config-wzx-react to the "extends" in your .eslintrc.* file.

{
  "extends": "wzx-react"
}

Typescript eslint needs tsconfig.json in your project root directory.

License

MIT.