@fuelrats/eslint-config v2.3.0
@fuelrats/eslint-config
- Base ESLint ruleset with
babel-eslintas the primary parser. Generally intended for node.js backend projects.- Assumes an ECMAScript 2020 environment with
Babel 7as the primary transpiler. - Includes
eslint-plugin-importfor additional ESModule linting. - Includes
eslint-plugin-babelfor providing core rule compatibility for common babel plugins. - Includes
eslint-plugin-jsdocfor JSDoc block linting. If you do not use JSDoc, add"jsdoc/require-jsdoc": ["off"]to your rules in your.eslintrcfile. - Also includes a
purejspreset which disablesbabel-eslintandeslint-plugin-babel.
- Assumes an ECMAScript 2020 environment with
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-configVia yarn 1.x
Yarn v1 does not have an included remote script runner. First you must globally install install-peerdeps
$ yarn global add install-peerdepsthen run
$ install-peerdeps -d -Y @fuelrats/eslint-configVia yarn 2 😎
$ yarn dlx install-peerdeps -d -Y @fuelrats/eslint-configOther 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-configConfiguration
- Add the following to your
.eslintrcfile:
"extends": "@fuelrats/eslint-config",Or if you don't use Babel,
"extends": `@fuelrats/eslint-config/purejs`- Setup additional environment options. This config only enables the
"es6"environment. All other env settings are up to your project.- For more information on eslint envrionment settings, visit the eslint docs
Credits
Our code style and this config set was inspired by and derived from the AirBnB javascript style guide.
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago