teacodeio / eslint-config-teacode-node

Teacode eslint config for node

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

eslint-config-teacode-node

For Node. To see for React version check eslint-config-teacode

Setup

install:

npm i eslint-config-teacode-node -D

# or 

yarn add eslint-config-teacode-node -D

Add to package.json:

{
  "prettier": "eslint-config-teacode-node/prettier",
  "devDependencies": {
    "eslint": "^7.0.0 || ^8.0.0",
    "eslint-config-teacode-node": "^1",
    "typescript": "*"
  }
}

Config require both eslint and typescript to be installed.

Add .eslintrc:

{
  "extends": ["eslint-config-teacode-node"]
}

overriding

Both Prettier and Eslint rules might depend on developers preferences. Instructions how to change prettier rules can be found here, and eslint rules are easily modifiable by adding rules in .eslintrc.

About

Teacode eslint config for node


Languages

Language:JavaScript 100.0%