For React. To see for Node version check eslint-config-teacode-node
npm i eslint-config-teacode -D
# or
yarn add eslint-config-teacode -D
{
"prettier": "eslint-config-teacode/prettier",
"devDependencies": {
"eslint": "^7.0.0 || ^8.0.0",
"eslint-config-teacode": "^2",
"typescript": "*"
}
}
Config require both eslint
and typescript
to be installed.
{
"extends": ["eslint-config-teacode"]
}
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
.
Version ^1
configured without a11y