2.0.0 • Published 5 years ago

@priver/eslint-config-react v2.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

@priver/eslint-config-react

Shareable config for eslint-plugin-react.

npm version npm downloads license

Installation

Install the correct versions of each package, which are listed by the command:

yarn add --dev eslint eslint-plugin-import eslint-plugin-react @priver/eslint-config @priver/eslint-config-import @priver/eslint-config-react
# or
npm install --save-dev eslint eslint-plugin-import eslint-plugin-react @priver/eslint-config @priver/eslint-config-import @priver/eslint-config-react

Usage

Add the following in your .eslintrc.json:

{
    "root": true,
    "extends": [
        "@priver/eslint-config",
        "@priver/eslint-config-import",
        "@priver/eslint-config-react"
    ],
    "settings": {
        "react": {
            "version": "16.4"
        }
    }
}