Skip to main content

๐Ÿ”ด Strict

Use when you want recommended-type-checked + additional stable runtime helpers.

Config keyโ€‹

tsconfig.configs.strict

Flat Config exampleโ€‹

import tsconfig from "eslint-plugin-tsconfig";

export default [tsconfig.configs.strict];

Rules in this presetโ€‹

  • Fix legend:
    • ๐Ÿ”ง = autofixable
    • ๐Ÿ’ก = suggestions available
    • โ€” = report only
RuleFix
consistent-module-resolutionโ€”
no-declaration-only-without-declaration๐Ÿ”ง
no-deprecated-targetโ€”
no-disable-strict-subsetโ€”
no-esmoduleinterop-with-verbatim๐Ÿ”ง
no-include-distโ€”
no-include-node-modules๐Ÿ”ง
no-rootdir-includes-outdirโ€”
require-composite-for-references๐Ÿ”ง
require-declaration-with-composite๐Ÿ”ง
require-force-consistent-casing-in-file-names๐Ÿ”ง
require-outdir-when-emittingโ€”
require-strict-mode๐Ÿ”ง
PresetDescription
๐ŸŸก recommendedDefault baseline for most TypeScript codebases
๐ŸŸฃ allEvery rule, including experimental coverage
๐Ÿ“ค emit-configBest practices for TypeScript emit/output configuration
๐Ÿงน include-hygieneClean include, exclude, and files patterns
๐ŸŽฏ lib-targetConsistency between target, lib, and downlevelling
๐Ÿ“ฆ module-resolutionModern and consistent module resolution settings
๐Ÿ”— project-referencesCorrect TypeScript project references setup
๐Ÿ”’ strict-modeStrict mode options beyond the base strict flag