๐ฏ lib-target
Rules that enforce consistency between target, lib, and related TypeScript downlevelling options.
Config keyโ
tsconfig.configs["lib-target"]
Flat Config exampleโ
import tsconfig from "eslint-plugin-tsconfig";
export default [tsconfig.configs["lib-target"]];
Rules in this presetโ
Fixlegend:๐ง= autofixable๐ก= suggestions availableโ= report only
| Rule | Fix |
|---|---|
consistent-target-and-lib | โ |
no-deprecated-target | โ |
no-esnext-target-in-library | โ |
require-downlevel-iteration-with-iterators | ๐ง |
Related presetsโ
| Preset | Description |
|---|---|
| ๐ก recommended | Default baseline for most TypeScript codebases |
| ๐ด strict | Recommended plus a richer set of safety rules |
| ๐ฃ all | Every rule, including experimental coverage |
| ๐ค emit-config | Best practices for TypeScript emit/output configuration |
| ๐งน include-hygiene | Clean include, exclude, and files patterns |
| ๐ฆ module-resolution | Modern and consistent module resolution settings |
| ๐ project-references | Correct TypeScript project references setup |
| ๐ strict-mode | Strict mode options beyond the base strict flag |