2.3.0 • Published 1 year ago

@fuelrats/eslint-config-react v2.3.0

Weekly downloads
68
License
MIT
Repository
github
Last release
1 year ago

@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 and @fuelrats/eslint-config-react aims to help unify style and standards across all major FuelRats projects.

Setup

Installation

We recommend the install-peerdeps package for automatically adding the peer dependencies required by this config.

NOTE: The commands below assume you are installing to devDependencies. If you want to install to your main dependencies (not recommended), remove the -d flag.

Via npm v5+

$ npx install-peerdeps -d @fuelrats/eslint-config && npx -d install-peerdeps @fuelrats/eslint-config-react

Via yarn 1.x

Yarn v1 does not have an included remote script runner. First you must globally install install-peerdeps

$ yarn global add install-peerdeps

then run

$ install-peerdeps -d -Y @fuelrats/eslint-config && install-peerdeps -d -Y @fuelrats/eslint-config-react

Via yarn 2 😎

$ yarn dlx install-peerdeps -d -Y @fuelrats/eslint-config && yarn dlx install-peerdeps -d -Y @fuelrats/eslint-config-react

Other Package managers

Refer to your manager docs, or just manually install everything (borrriiiiing). Below is a list of package names you can apply to the manager of your choice.

eslint babel-eslint eslint-plugin-babel eslint-plugin-import eslint-plugin-jsdoc eslint-plugin-jsx-a11y eslint-plugin-react eslint-plugin-react-hooks @fuelrats/eslint-config @fuelrats/eslint-config-react

Configuration

  1. Add the following to your .eslintrc file:
"extends": [
    "@fuelrats/eslint-config",
    "@fuelrats/eslint-config-react"
]
  1. Setup additional environment options. This config only enables the "es6" (via eslint-config) and "browser" environments. All other env settings are up to your project.
  2. We recommend also setting your react settings per the eslint-plugin-react configuration docs.
    • This config defaults the react pragma to "React" and the react version to "detect", but more configuration may be neccessary for your project.
    • 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 😍🎉🎊

0.0.0-dev.1

1 year ago

3.0.0-canary.1

1 year ago

2.4.0-canary.23

1 year ago

2.4.0-canary.18

3 years ago

2.4.0-canary.19

3 years ago

2.4.0-canary.11

3 years ago

2.4.0-canary.10

3 years ago

2.4.0-canary.9

3 years ago

2.4.0-canary.6

3 years ago

2.4.0-canary.5

3 years ago

2.4.0-canary.3

3 years ago

2.4.0-canary.4

3 years ago

2.4.0-canary.1

3 years ago

2.4.0-canary.2

3 years ago

2.4.0-canary.0

3 years ago

2.3.0

3 years ago

2.2.0

4 years ago

2.2.0-rc.6

4 years ago

2.2.0-rc.4

4 years ago

2.2.0-rc.5

4 years ago

2.2.0-rc.2

4 years ago

2.2.0-rc.3

4 years ago

2.2.0-rc.1

4 years ago

2.2.0-rc.0

4 years ago

2.2.0-canary.4

4 years ago

2.2.0-canary.3

4 years ago

2.2.0-canary.2

4 years ago

2.2.0-canary.1

4 years ago

2.2.0-canary.0

4 years ago

2.1.0

4 years ago

2.1.0-canary.0

4 years ago

2.0.0

4 years ago

2.0.0-canary.3

4 years ago

2.0.0-canary.2

4 years ago

2.0.0-canary

4 years ago

1.2.5

4 years ago

1.2.4

4 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.1.6

4 years ago

1.1.5

5 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.0

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.12.0

5 years ago

0.11.0

5 years ago

0.10.4

5 years ago

0.10.3

5 years ago

0.10.2

5 years ago

0.10.1

5 years ago

0.10.0

5 years ago

0.9.0

5 years ago

0.8.0

5 years ago

0.7.0

6 years ago

0.6.0

6 years ago

0.5.0

6 years ago

0.4.0

6 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.2.0

6 years ago

0.1.0

6 years ago