Skip to main content

Getting Started

Install the plugin:

npm install --save-dev eslint-plugin-tsdoc-require-2

Then enable it in your Flat Config:

import tsdocRequire from "eslint-plugin-tsdoc-require-2";

export default [tsdocRequire.configs.recommended];

Optional stricter presets​

import tsdocRequire from "eslint-plugin-tsdoc-require-2";

export default [
// tsdocRequire.configs.typedoc,
// tsdocRequire.configs["typedoc-strict"],
// tsdocRequire.configs.tsdoc,
// tsdocRequire.configs.jsdoc,
];
  • Start with one preset.
  • Fix violations in small batches.
  • Promote warnings to errors after stabilization.

Rule navigation​

Use these docs routes:

  • /docs/rules/ for the full rule list.
  • /docs/rules/presets/ for preset comparisons.