Use yarn lint
or npm run lint
to lint your TypeScript project !
See https://eslint.org/blog/2019/01/future-typescript-eslint
If you're using VSCode, we recommend using these settings :
"eslint.autoFixOnSave": true,
"eslint.validate": [
{
"language": "javascript",
"autoFix": true
},
{
"language": "typescript",
"autoFix": true
},
{
"language": "vue",
"autoFix": true
}
]
It will lint your .js
, .ts
& .vue
files whenever you're saving them.