@gabehayes/eslint-config-react
Check out [eslint-config-airbnb](https://github.com/airbnb/javascript/tree/master/packages/eslint-config-airbnb/rules) for a list of all the rules we are inheriting.
Last updated 2 years ago by gabehayes .
MIT · Original npm · Tarball · package.json
$ cnpm install @gabehayes/eslint-config-react 
SYNC missed versions from official npm registry.

eslint-config-react

Check out eslint-config-airbnb for a list of all the rules we are inheriting.

Table of Contents

  1. Installation
  2. Rules
    1. react/no-set-state
    2. react/sort-comp

Installation

Install the package.

yarn add @keenai/eslint-config-react

Then, extend @keenai/react in your ESLint configuration file.

{
  extends: [
    '@keenai/react',
  ],
}

Rules

react/no-set-state

We use Redux for state management. This should probably be a warning, because there may be a situation where using state would be the correct solution. Anyway, it's an error.

react/sort-comp

Will warn if you do not sort your component properties in the expected order:

  1. Type annotations
  2. Static methods
  3. Lifecycle methods
  4. Handler methods (onThis, onThat)
  5. Getter methods
  6. Setter methods
  7. Everything else
  8. Render methods
  9. Render

Current Tags

  • 0.1.4                                ...           latest (2 years ago)

6 Versions

  • 0.1.4                                ...           2 years ago
  • 0.1.3                                ...           3 years ago
  • 0.1.2                                ...           3 years ago
  • 0.1.2-0                                ...           3 years ago
  • 0.1.1                                ...           3 years ago
  • 0.1.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 10
Last Day 0
Last Week 7
Last Month 3
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |