0.2.17 • Published 2 years ago

eslint-plugin-tsdoc v0.2.17

Weekly downloads
52,989
License
MIT
Repository
github
Last release
2 years 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-kitnorylord-ui-kiteslint-config-miszo@kodingdotninja/style-guide@kodingdotninja/style-guide-core@lcooper/eslint-config-typescript@ljoonal/eslint-config-ts@realshaunoneill/style-guide@rupertofly/generator-rubyq@rubensworks/eslint-config@rushstack/eslint-config@samelogic/eslint-config@oathompsonjones/eslint-config@raccord/eslint-config@onefish/style-guide@oursky/eslint-config@oursky/eslint-plugin@overdose/config@piyush97/eslint-config@slashnephy/eslint-config@solarwinds-apm/eslint-config@sitek94/style-guide@skipprotocol/style-guide@skipprotocol/style-guide-core@myadbox/eslint-config-exoplanet@lottiefiles/eslint-plugin@logic-warlock/eslint-config-typescript@mlaursen/eslint-config@motionhungry/style-policy@jobgetapp/eslint-config@jetsam/tooling@jonahsnider/xo-config@kcws/eslint-config@khulnasoft/style-guide@killbasa/eslint-config@kbotdev/eslint-config@maxxxxxdlp/eslint-config@makeless/makeless-ui@mblabs/eslint-config@metastreet/fe-style-guide@megabytelabs/eslint-config@luddites-me/ts-tools@lshay/eslint-config@lshay/eslint-config-flat@massalabs/eslint-config@nodesuite/eslint-config@nozomiishii/eslint-config@renoirb/conventions-use-eslint@sapphirecode/eslint-config-ts@shuyun-ep-team/eslint-config@shopify/eslint-plugin-cli@strangelovelabs/style-guide@strangelovelabs/style-guide-core@tsparticles/build@tsparticles/cli@tsparticles/eslint-config@tsparticles/webpack-plugin@tronite/style-guide@ygorluiz/style-guide@yokots/eslint-config@yoursunny/xo-config@yeger/eslint-config@typedigital/eslint-config@youversion/eslint-config-typescript@youwol/eslint-config@pianity/eslint-config@podlipny/eslint-config@panmenghan/starter@spa5k/eslint-config@spotmonkeystudios/eslint-config@sprillow-connor/holochain-client@sync-labs/eslint-config@szhou/eslint-config@szhou/eslint-config-ts-base@spedue/scripts@star-dancer/watermelon@theqrl/eslint-config-base-web3@tomer/eslint-config@xhubio/build-base@toruslabs/eslint-config-react@toruslabs/eslint-config-typescript@toruslabs/eslint-config-vue@symbola/config@rashedmakkouk/eslint-config
0.2.17

2 years ago

0.2.16

2 years ago

0.2.15

2 years ago

0.2.14

3 years ago

0.2.13

3 years ago

0.2.12

3 years ago

0.2.11

3 years ago

0.2.10

3 years ago

0.2.9

3 years ago

0.2.8

3 years ago

0.2.7

4 years ago

0.2.6

4 years ago

0.2.5

4 years ago

0.2.4

4 years ago

0.2.3

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago

0.0.0

5 years ago