Overview
@typescript-eslint/eslint-plugin
includes over 100 rules that detect best practice violations, bugs, and/or stylistic issues specifically for TypeScript code. All of our rules are listed below.
tip
Instead of enabling rules one by one, we recommend using one of our pre-defined configs to enable a large set of recommended rules.
Rules
The rules are listed in alphabetical order. You can optionally filter them based on these categories:
Config Group (⚙️)
Metadata
(These categories are explained in more detail below.)
Rule | ⚙️ | 🔧 | 💭 | 🧱 | 💀 |
---|---|---|---|---|---|
@typescript-eslint/adjacent-overload-signatures Require that function overload signatures be consecutive | 🎨 | ||||
@typescript-eslint/array-type Require consistently using either T[] or Array<T> for arrays | 🎨 | 🔧 | |||
@typescript-eslint/await-thenable Disallow awaiting a value that is not a Thenable | ✅ |