@fooxly/eslint-config-react
The default ESLint config for Fooxly projects using React.
Last updated 7 months ago by luchermkens .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @fooxly/eslint-config-react 
SYNC missed versions from official npm registry.

Fooxly ESLint Config for React

The default ESLint config for Fooxly projects using React.

npm version downloads ci status

:rocket:  Powered By

:heart:  Support us

About 40% of your donation goes to one of the charities we support. For further information or questions please visit our website or contact us via charity@fooxly.com.

BuyMeACoffee    Patreon    PayPal


:cloud:  Installation

using npm

npm install --save-dev @fooxly/eslint-config-react

using yarn

yarn add -D @fooxly/eslint-config-react

:triangular_ruler:  Usage

We recommend using Babel's ESLint parser.

using .eslintrc

{
  "parser": "babel-eslint",
  "extends": ["@fooxly/eslint-config-react"]
}

using package.json

...
"eslintConfig": {
  "parser": "babel-eslint",
  "extends": ["@fooxly/eslint-config-react"]
}
...

:straight_ruler:  Our Configuration

We mostly utilize the Standard Code Style for React & JSX linting, with the following two rules disabled:

Hooks

We enforce the Rules of Hooks as well, and warn for exhaustive dependencies.

Class Components

We also enforce the following order for methods and/or variables in a Class component:

  1. Static methods
  2. Static variables
  3. Instance variables
  4. Lifecycle methods
  5. everything else
  6. Rendering methods (eg. renderButtons ())
  7. render method

:label:  Badge

Are you using this in one of your projects? Include one of these badges in your README to let others know that your code is using the Fooxly code style.

js-fooxly-style

[![js-fooxly-style](https://img.shields.io/badge/code%20style-fooxly-brightgreen)](https://www.npmjs.com/package/@fooxly/eslint-config-react)

Current Tags

  • 2.0.1                                ...           latest (7 months ago)

4 Versions

  • 2.0.1                                ...           7 months ago
  • 2.0.0                                ...           7 months ago
  • 1.0.1                                ...           8 months ago
  • 1.0.0                                ...           8 months ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dev Dependencies (4)

Copyright 2014 - 2016 © taobao.org |