Skip to content

Latest commit

 

History

History
45 lines (33 loc) · 973 Bytes

README.md

File metadata and controls

45 lines (33 loc) · 973 Bytes

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