ESLinter configs for typescript
https://eslint.org/docs/developer-guide/shareable-configs
Make sure you have a working ESLint setup in your project
npm install @digitpaint/eslint-config-typescript
Add the following to your eslint config
{
"extends": "@digitpaint/eslint-config-typescript"
}
Example:
{
"env": {
"browser": true,
"es2021": true
},
"extends": "@digitpaint/eslint-config-typescript",
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module",
"project": "./tsconfig.json"
},
}