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

Package detail

eslint-plugin-tsdoc

microsoft1.9mMIT0.4.0TypeScript support: included

An ESLint plugin that validates TypeScript doc comments

TypeScript, documentation, doc, comments, JSDoc, TSDoc, ESLint, plugin

readme

eslint-plugin-tsdoc

This ESLint plugin provides a rule for validating that TypeScript doc comments conform to the TSDoc specification.

Usage

  1. Configure ESLint for your TypeScript project. See the instructions provided by the typescript-eslint project. You will end up with some dependencies like this:

    my-project/package.json (example)

    {
      "name": "my-project",
      "version": "1.0.0",
      "dependencies": {},
      "devDependencies": {
        "@typescript-eslint/eslint-plugin": "~2.6.1",
        "@typescript-eslint/parser": "~2.6.1",
        "eslint": "~6.6.0",
        "typescript": "~3.7.2"
      },
      "scripts": {
        "lint": "eslint -f unix \"src/**/*.{ts,tsx}\""
      }
    }
  2. Add the eslint-plugin-tsdoc dependency to your project:

    $ cd my-project
    $ npm install --save-dev eslint-plugin-tsdoc
  3. In your ESLint config file, add the "eslint-plugin-tsdoc" package to your plugins field, and enable the "tsdoc/syntax" rule. For example:

    my-project/.eslintrc.js (example)

    module.exports =  {
      plugins: [
        "@typescript-eslint/eslint-plugin",
        "eslint-plugin-tsdoc"
      ],
      extends:  [
        'plugin:@typescript-eslint/recommended'
      ],
      parser:  '@typescript-eslint/parser',
      parserOptions: {
        project: "./tsconfig.json",
        tsconfigRootDir: __dirname,
        ecmaVersion: 2018,
        sourceType: "module"
      },
      rules: {
        "tsdoc/syntax": "warn"
      }
    };

This package is maintained by the TSDoc project. If you have questions or feedback, please let us know!

changelog

Change Log - eslint-plugin-tsdoc

This log was last generated on Sat, 23 Nov 2024 00:23:35 GMT and should not be manually modified.

0.4.0

Sat, 23 Nov 2024 00:23:35 GMT

Minor changes

  • Leverage parserOptions.tsConfigRootDir to reduce file system probing. This field is commonly used when eslint is configured with @typescript-eslint/parser.

Patches

  • Include CHANGELOG.md in published releases again

0.3.0

Tue, 28 May 2024 21:34:19 GMT

Minor changes

  • Minor package cleanup.

Patches

  • Upgrade dev toolchain (Heft, Webpack, TypeScript, ESLint)

0.2.17

Wed, 14 Sep 2022 02:55:06 GMT

Version update only

0.2.16

Sat, 09 Apr 2022 02:28:41 GMT

Patches

  • Rename the "master" branch to "main."

0.2.15

Thu, 07 Apr 2022 22:51:07 GMT

Version update only

0.2.14

Tue, 20 Apr 2021 04:25:13 GMT

Version update only

0.2.13

Mon, 19 Apr 2021 21:22:32 GMT

Version update only

0.2.12

Fri, 16 Apr 2021 23:22:26 GMT

Version update only

0.2.11

Fri, 22 Jan 2021 18:07:19 GMT

Version update only

0.2.10

Thu, 03 Dec 2020 08:07:55 GMT

Version update only

0.2.9

Thu, 03 Dec 2020 04:31:52 GMT

Version update only

0.2.8

Mon, 30 Nov 2020 06:16:21 GMT

Patches

  • Update documentation to reference the new website URL
  • Upgrade build tools and configuration

0.2.7

Fri, 04 Sep 2020 15:53:27 GMT

Patches

  • Update build system

0.2.6

Sun, 19 Jul 2020 01:22:35 GMT

Version update only

0.2.5

Wed, 20 May 2020 22:33:27 GMT

Version update only

0.2.4

Fri, 27 Mar 2020 23:14:53 GMT

Patches

  • Improve plugin documentation URL in ESLint metadata

0.2.3

Sat, 22 Feb 2020 20:44:16 GMT

Version update only

0.2.2

Sat, 22 Feb 2020 02:55:07 GMT

Version update only

0.2.1

Tue, 21 Jan 2020 21:26:36 GMT

Patches

  • Use a cache to avoid repeatedly reloading tsdoc.json during linting

0.2.0

Tue, 19 Nov 2019 22:01:56 GMT

Minor changes

  • Add support for defining your own custom tags using tsdoc.json

0.1.2

Sat, 09 Nov 2019 05:55:42 GMT

Patches

  • Improve lint rule to check every doc comment in a source file

0.1.1

Sat, 09 Nov 2019 04:57:59 GMT

Patches

  • Improve error location accuracy
  • Generalize the TSDoc parser configuration to allow any standard tag

0.1.0

Wed, 06 Nov 2019 00:40:51 GMT

Minor changes

  • Initial release of plugin