Skip to main content

๐ŸŸข jsconfig

Use when you lint jsconfig.json files and want strong JavaScript-project compiler-option hygiene without TS-only project-reference constraints.

Config keyโ€‹

tsconfig.configs.jsconfig

Flat Config exampleโ€‹

import tsconfig from "eslint-plugin-tsconfig";

export default [tsconfig.configs.jsconfig];

Rules in this presetโ€‹

  • Fix legend:
    • ๐Ÿ”ง = autofixable
    • ๐Ÿ’ก = suggestions available
    • โ€” = report only
RuleFix
consistent-module-resolutionโ€”
no-allowjs-without-checkjsโ€”
no-disable-strict-subsetโ€”
no-include-distโ€”
no-include-node-modules๐Ÿ”ง
no-legacy-module-resolutionโ€”
no-skip-lib-checkโ€”
require-bundler-module-resolution๐Ÿ”ง
require-exact-optional-property-types๐Ÿ”ง
require-exclude-common-artifacts๐Ÿ”ง
require-no-implicit-override๐Ÿ”ง
require-no-unchecked-indexed-access๐Ÿ”ง
require-strict-mode๐Ÿ”ง
require-verbatim-module-syntax๐Ÿ”ง
PresetDescription
๐ŸŸก recommendedDefault baseline for most TypeScript codebases
๐Ÿ”ด strictRecommended plus a richer set of safety rules
๐Ÿ’Ž strictestMaximum strict compiler-settings coverage
๐ŸŸฃ allEvery rule, including experimental coverage
๐Ÿ“ฆ module-resolutionModern and consistent module resolution settings
๐Ÿงน include-hygieneClean include, exclude, and files patterns
๐Ÿ”’ strict-modeStrict mode options beyond the base strict flag