2.0.6 • Published 3 years ago

@homeservenow/eslint-config-base v2.0.6

Weekly downloads
71
License
UNLICENSED
Repository
github
Last release
3 years ago

eslint-config-homeservenow-base

This represents our current "House Style" set of code rules for backend/node.js & react projects at Homeserve Now. Broadly our philosophy is to track what the Airbnb and Unicorn rulesets are doing, while applying Typescript best practices and requiring Prettier to be in the toolchain.

Usage

To use this in your project. Set up an .eslintrc with the following:

{
  "extends": [
    "@homeservenow/eslint-config-base/<node|react>"
  ],
  "rules": {
    // Define your overrides here
  }
}

Rules

Our ruleset extends the following plugins:

  "airbnb-typescript/base",
  "plugin:@typescript-eslint/recommended",
  "plugin:jest/recommended",
  "plugin:promise/recommended",
  "plugin:unicorn/recommended",
  "prettier",
  "prettier/react",
  "prettier/@typescript-eslint",

We have relaxed a couple of rules where we favour convenience over strictness.

Overrides

// TODO: Document each of our overrides here