Have opinions about JavaScript? We want to hear them. Take the 2018 JavaScript Ecosystem Survey »

@fuelrats/eslint-config-react

0.9.0 • Public • Published

@fuelrats/eslint-config-react

Motivation

The TechRat team of The FuelRats utilize ECMAScript on all fronts. Over time these projects have strayed in code standards as no common base has been shared between them.

@fuelrats/eslint-config aims to help unify style and standards across all major FuelRats projects.

These configs are in a draft stage, and are subject to frequent adjustments as we begin to unify across projects

Setup

  1. Run yarn global add install-peerdeps. (this is such a useful tool you should have it anyway 😃)
  2. Add the config and all peerdeps by running: install-peerdeps @fuelrats/eslint-config-react.
    • alternatively, if you use npx you could run npx install-peerdeps @fuelrats/eslint-config-react.
  3. Add "extends": ["@fuelrats/eslint-config-react"], to your .eslintrc file.
  4. Setup additional env options. By default, we only enable the es6 envronment. all other env settings are up to the project.
    • For more information on eslint envrionment settings, visit the eslint docs
  5. We recommend also setting your react settings per the eslint-plugin-react configuration docs.
    • By default, we configure eslint to use the default React pragma, and the current react version used in our react projects.
    • More information can be found here

Credits

Our code style and this config set was inspired by and derived from the AirBnB javascript style guide. Send some love their way 😍🎉🎊

install

npm i @fuelrats/eslint-config-react

Downloadsweekly downloads

16

version

0.9.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
  • avatar
Report a vulnerability