Standard configurations for Fuel Rats ECMAScript projects
v2 Changes a number of aspects of our code style which may lead to time consuming adjustments, and in some cases an outright refactor of your code.
Please see PR #3 for a comprehensive list of changes made from
v1.2.5If you are a react user,
@fuelrats/eslint-config-reactno longer extends@fuelrats/eslint-config. See the react packageREADME.mdfor more information.
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 Javascript projects.
This config has two separate packages:
- Base ESLint ruleset with
@babel/eslint-parseras the primary parser. Generally intended for node.js backend projects.- Assumes an ECMAScript 2020 environment with
Babel 7as the primary transpiler. - Includes [
@babel/eslint-plugin][eslint-plugin-babel] for providing core rule compatibility for common babel plugins. - Includes
eslint-plugin-importfor additional ESModule linting. - Includes
eslint-plugin-jsdocfor JSDoc block linting. - Also includes a
purejspreset which disables@babel/eslint-parserand [@babel/eslint-plugin][eslint-plugin-babel].
- Assumes an ECMAScript 2020 environment with
- Companion config to
@fuelrats/eslint-config. Built specifically for our react projects.- Adds
eslint-plugin-reactfor react and better JSX linting. - Adds
eslint-plugin-react-hooksfor react "rules of hooks" enforcement. - Adds
eslint-plugin-jsx-a11yfor enforcing website accessibility best practices.
- Adds
- For regular javascript or node.js projects, go to
@fuelrats/eslint-config. - For React projects, go to
@fuelrats/eslint-config-react.
This monorepo uses yarn workspaces to manage dependencies and versioning. When downloading for development, follow these steps:
- Clone the Repository
$ git clone https://github.com/FuelRats/eslint-config-fuelrats.git && cd eslint-config-fuelrats- Let yarn install everything for you
$ yarn install- Done! 🎉
Our code style and this config set was inspired by and derived from the AirBnB javascript style guide.