Skip to content

ravorona/eslint-config-typescript

Repository files navigation

ESLint configuration

Typescript code quality guide using ESLint

Install

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

Usage

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

Formatting rules

Prefer Prettier for formatting rules.