项目作者: buythewhale

项目描述 :
ESLint rules to use with React
高级语言: JavaScript
项目地址: git://github.com/buythewhale/eslint-plugin-react-extra.git
创建时间: 2017-02-16T09:43:28Z
项目社区:https://github.com/buythewhale/eslint-plugin-react-extra

开源协议:MIT License

下载


eslint-plugin-react-extra

ESLint rules to use with React

Installation

You’ll first need to install ESLint:

  1. $ npm i eslint --save-dev

Next, install eslint-plugin-react-extra:

  1. $ npm install eslint-plugin-react-extra --save-dev

Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-react-extra globally.

Usage

Add react-extra to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

  1. {
  2. "plugins": [
  3. "react-extra"
  4. ]
  5. }

Then configure the rules you want to use under the rules section.

  1. {
  2. "rules": {
  3. "react-extra/rule-name": 2
  4. }
  5. }

Supported Rules