@homeservenow/eslint-config-base
v2.0.6
Published
Shareable eslint config for backend/non-react projects
Downloads
10
Maintainers
Readme
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