Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

eslint-plugin-tsdoc-require

bruno.marotta13.1kISC0.0.3

Ensures that all typescript exported types and classes have TSDoc comments

eslint, eslintplugin, eslint-plugin, typescript, tsdoc

readme

eslint-plugin-tsdoc-require

Ensures that all typescript exported types and classes have TSDoc comments

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install eslint-plugin-tsdoc-require:

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

Usage

Add tsdoc-require to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": [
        "tsdoc-require"
    ]
}

Then configure the rules you want to use under the rules section.

{
    "rules": {
        "tsdoc-require/require": 2
    }
}

Rules

Name Description
require Ensures that all typescript exported types and classes have TSDoc comments