2.3.0 • Published 8 months ago

@fuelrats/eslint-config v2.3.0

Weekly downloads
79
License
MIT
Repository
github
Last release
8 months ago

@fuelrats/eslint-config

  • Base ESLint ruleset with babel-eslint as the primary parser. Generally intended for node.js backend projects.
    • Assumes an ECMAScript 2020 environment with Babel 7 as the primary transpiler.
    • Includes eslint-plugin-import for additional ESModule linting.
    • Includes eslint-plugin-babel for providing core rule compatibility for common babel plugins.
    • Includes eslint-plugin-jsdoc for JSDoc block linting. If you do not use JSDoc, add "jsdoc/require-jsdoc": ["off"] to your rules in your .eslintrc file.
    • Also includes a purejs preset which disables babel-eslint and eslint-plugin-babel.

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.

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

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

Via yarn 2 😎

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

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 @fuelrats/eslint-config

Configuration

  1. Add the following to your .eslintrc file:
"extends": "@fuelrats/eslint-config",

Or if you don't use Babel,

"extends": `@fuelrats/eslint-config/purejs`
  1. Setup additional environment options. This config only enables the "es6" environment. All other env settings are up to your project.

Credits

Our code style and this config set was inspired by and derived from the AirBnB javascript style guide.

Send some love their way 😍🎉🎊

3.0.0-canary.4

8 months ago

3.0.0-canary.3

12 months ago

0.0.0-dev.1

1 year ago

3.0.0-canary.2

1 year ago

3.0.0-canary.1

1 year ago

2.4.0-canary.23

1 year ago

2.4.0-canary.24

1 year ago

2.4.0-canary.20

2 years ago

2.4.0-canary.21

2 years ago

2.4.0-canary.18

3 years ago

2.4.0-canary.19

3 years ago

2.4.0-canary.17

3 years ago

2.4.0-canary.16

3 years ago

2.4.0-canary.15

3 years ago

2.4.0-canary.13

3 years ago

2.4.0-canary.14

3 years ago

2.4.0-canary.12

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-rc.7

4 years ago

2.2.0

4 years ago

2.2.0-rc.5

4 years ago

2.2.0-rc.4

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-canary.0

4 years ago

2.1.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.1

4 years ago

2.0.0-canary

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 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.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.0

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.0

6 years ago