For Node. To see for React version check eslint-config-teacode
npm i eslint-config-teacode-node -D
# or
yarn add eslint-config-teacode-node -D
{
"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.
{
"extends": ["eslint-config-teacode-node"]
}
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
.