Typescript code quality guide using ESLint
Yarn:
yarn add -D \
@ravorona/eslint-config-typescript \
eslint \
typescript-eslint \
typescript
NPM:
npm i --save-dev \
@ravorona/eslint-config-typescript \
eslint \
typescript-eslint \
typescript
Set the shared configurations inside your ESLint configuration
import ravorona from '@ravorona/eslint-config-typescript'
export default [
...ravorona.configs.all,
{
rules: {
'@typescript-eslint/no-inferrable-types': 'error'
}
}
]
Typescript supported rules: Here
Prefer Prettier for formatting rules.