These are settings for ESLint.
This setup lints your TypeScript code based on practices. Feel free to override the rules that make sense for you.
- In your project folder, run:
npx install-peerdeps --dev eslint-config-twg
- You will see several dependencies were installed. Now, create (or update) a
.eslintrc
file with the following content:
{
"extends": "eslint-config-twg/typescript.js",
"parserOptions": {
"project": "./tsconfig.json"
}
}
- Then make or update a
tsconfig.json
file:
{
"extends": "eslint-config-twg/tsconfig.json",
"include": [
"**/*"
]
}
- Add prettier config @twgdev/prettier-config