A unified ESLint configuration with sensible defaults for TypeScript projects.
This package provides multiple ESLint Shareable Configurations for your convenience. To make use of any of them, you must first install eslint
, prettier
and typescript
since this package does not do it for you. Then install it with:
npm install --save-dev @rfgamaral/eslint-config-typescript-unified
Once @rfgamaral/eslint-config-typescript-unified
is installed, you can use any of the available configurations in the extends
section of your ESLint configuration.
Default configuration with recommended rules from @typescript-eslint/eslint-plugin
and eslint-plugin-prettier
:
{
"extends": "@rfgamaral/eslint-config-typescript-unified"
}
Extends the default configuration with recommended rules from ESLint:
{
"extends": "@rfgamaral/eslint-config-typescript-unified/eslint"
}
Extends the default configuration with base rules from Aribnb:
{
"extends": "@rfgamaral/eslint-config-typescript-unified/airbnb"
}
Extends the Airbnb configuration with React rules from Airbnb:
{
"extends": "@rfgamaral/eslint-config-typescript-unified/airbnb-react"
}