typedoc-plugin-custom-validation

1.1.1 • Public • Published

typedoc-plugin-custom-validation

npm version CI Coverage Status
code style: prettier GitHub Discussions BSD 3 Clause license Commitizen friendly semantic-release

Donate

Any donations would be much appreciated. 😄

Installation

# Install with npm
npm install -D typedoc-plugin-custom-validation

# Install with pnpm
pnpm add -D typedoc-plugin-custom-validation

# Install with yarn
yarn add -D typedoc-plugin-custom-validation

Usage

All options are configured in the customValidation option.

byKind

This option is for specifying requirements for each kind of node.

Example: Require all functions to have a summary and have an @example tag.

{
  "plugin": ["typedoc-plugin-custom-validation"],
  "customValidation": {
    "byKind": [
      {
        "kinds": "Function",
        "summary": true,
        "tags": ["example"]
      }
    ]
  }
}

My Tags Don't Exists?

Due to the way typedoc works, some tags may be move to other nodes than the one they were defined on.

For example, @param tags are removed from the Function node they are defined on and its content is put onto the corresponding Parameter node. You can require parameters to be documented with:

{
  "plugin": ["typedoc-plugin-custom-validation"],
  "customValidation": {
    "byKind": [
      {
        "kinds": "Parameter",
        "summary": true
      }
    ]
  }
}

Readme

Keywords

Package Sidebar

Install

npm i typedoc-plugin-custom-validation

Weekly Downloads

264

Version

1.1.1

License

BSD-3-Clause

Unpacked Size

16.1 kB

Total Files

7

Last publish

Collaborators

  • rebeccastevens