Install deps:
yarn add eslint prettier typescript
yarn add -D @blinkk/eslint-config-root
Add eslint config file .eslintrc.json
:
{
"extends": [
"@blinkk/root"
]
}
Add .eslintignore
:
node_modules/
build/
dist/
Add scripts to package.json
:
{
"scripts": {
"lint": "eslint . --ext .ts,.tsx",
"fix": "eslint . --ext .ts,.tsx --fix"
}
}