1.1.1 • Published 1 year ago

typedoc-plugin-custom-validation v1.1.1

Weekly downloads
-
License
BSD-3-Clause
Repository
github
Last release
1 year ago

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
      }
    ]
  }
}
1.1.1

1 year ago

1.1.0

1 year ago

1.0.0

1 year ago