eslint-config-teacode
v2.1.0
Published
Teacode eslint config for React
Downloads
1,689
Maintainers
Readme
eslint-config-teacode
For React. To see for Node version check eslint-config-teacode-node
Setup
install:
npm i eslint-config-teacode -D
# or
yarn add eslint-config-teacode -D
Add to package.json
:
{
"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.
Add .eslintrc
:
{
"extends": ["eslint-config-teacode"]
}
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
.
A11y
Version ^1
configured without a11y