An opinionated set of ESLint rules for TypeScript projects
Installation
Install eslint-config-typescript:
$ npm install --save-dev eslint-config-typescript
Then, add eslint-config-typescript to the "extends" array in your ESLint file.
Make sure to put it last, so it gets the chance to override other configs.
{
"extends":[
"typescript"
]
}
A few ESLint plugins are supported as well:
{
"extends":[
"typescript",
"typescript/react",
"typescript/prettier",
"typescript/prettier-react"
]
}
Note: typescript/prettier-react will automatically import typescript/prettier.