0.4.0 • Published 5 months ago

eslint-plugin-tsdoc v0.4.0

Weekly downloads
52,989
License
MIT
Repository
github
Last release
5 months ago

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!

@jiralite/eslint-config-neon@zhengxs/eslint-config-library@zhengxs/spec-lib@zhengxs-devkit/eslint-config@mediinfo/eslint-configbitguild-blockchain-sdk@miszo/eslint-config@eslint-sets/vue3-ts@eslint-sets/simple-ts@marcozac/eslint-config@infinitebrahmanuniverse/nolb-eslint-plugin-t@dankeu/eslint-config-tseslint-config-watchfuleslint-config-watchful-base@everything-registry/sub-chunk-1615eslint-config-zohynorylord-kiteslint-config-miszo@comprend/eslint-config@cuppachino/eslint-config@damjack/elm-newrelic-nreum.js@cosmiccloud/style-guide@connoropolous/holochain-client@contract-case/eslint-config-case-maintainer@cprussin/eslint-config@domoskanonos/nidoca-base@domoskanonos/nidoca-testing@rubensworks/eslint-config@voluspa/style-guideeslint-config-slekup@youngseokangg/common-bundlejodit-prk@hyperspaceinc/style-guide@hyperspaceinc/style-guide-core@panmenghan/starter@arcbuilders/tooling@atom-web/fabric@auditorium-ai/eslint-config@authentiqagency/eslint-config@arianrhodsandlot/eslint-config@bausmeier/eslint-config@ahmdigital/eslint-config@bisual/eslint-config-js-ts@berun/eslint-config@biased-ts/eslint-config@bestdoctor/eslint-config@carryall/eslint-config@carv/eslint-config@brionmario/eslint-plugin@chocolab/configs@cksource-cs/eslint-config-cs-module@chatnext/eslint-config@chempo/eslint-config-ts@charlesbt/eslint-config-custom@407dev/eslint-config@abelflopes/eslint-config-tsr-pro@codiumco/afcas-shared@bootcamp-project/typescript-config@datarockets/style-guide@dcm/eslint-config@devtemplates/eslint-preset-typescript@didor/style-guide@connectacademic/eslint@connectacademic/eslint-config@daotl/eslint-config@gmana/config@samelogic/eslint-config@fernando457829/eslint-config-typescript@grikomsn/style-guide@grikomsn/style-guide-core@graz-sh/style-guide@graz-sh/style-guide-core@haltcase/style@haojian-app/eslint-config@fluidframework/eslint-config-fluid@html-validate/eslint-config-typescript@fgv/ts-utils-jest@elux/eslint-plugin@fp51/eslint-config@estarossa/eslint-quicksetup@eslint-sets/eslint-config-ts@eslint-sets/eslint-config-vue@eslint-sets/eslint-config-vue3@eslint-sets/eslint-config-vue3-ts@eslint-sets/react-ts@eslint-sets/eslint-config@eslint-sets/eslint-config-all@eslint-sets/eslint-config-basic@eslint-sets/eslint-config-react-ts@eslint-sets/eslint-config-simple-ts@eslint-sets/eslint-config-svelte@fridaythings/configs@frostbitecms/eslint-config@forsakringskassan/eslint-config-typescript@gijslaarman/styleguide@gipo355/eslint-config-base@go-saas/go-saas-ui@goodboydigital/eslint-config@koolie/tooling@kurocado-studio/style-guide
0.4.0

5 months ago

0.3.0

11 months ago

0.2.17

3 years ago

0.2.16

3 years ago

0.2.15

3 years ago

0.2.14

4 years ago

0.2.13

4 years ago

0.2.12

4 years ago

0.2.11

4 years ago

0.2.10

4 years ago

0.2.9

4 years ago

0.2.8

4 years ago

0.2.7

5 years ago

0.2.6

5 years ago

0.2.5

5 years ago

0.2.4

5 years ago

0.2.3

5 years ago

0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.0

6 years ago