๐ strict-mode
Rules that enforce TypeScript strict mode options beyond the base strict flag, including exactOptionalPropertyTypes, noUncheckedIndexedAccess, noImplicitOverride, and similar settings.
Config keyโ
tsconfig.configs["strict-mode"]
Flat Config exampleโ
import tsconfig from "eslint-plugin-tsconfig";
export default [tsconfig.configs["strict-mode"]];
Rules in this presetโ
Fixlegend:๐ง= autofixable๐ก= suggestions availableโ= report only
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 |
| ๐ฏ lib-target | Consistency between target, lib, and downlevelling |
| ๐ฆ module-resolution | Modern and consistent module resolution settings |
| ๐ project-references | Correct TypeScript project references setup |