rbiggs / jsdoc-intellisense

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Testing JsDoc for Intellisense & Type Linting with typescript

Setup:

git clone https://github.com/daKmoR/jsdoc-intellisense.git
cd jsdoc-intellisense
yarn install

Live linting via IDE

Linting to be used in a CI

  • Typescript ignores JsDoc types from node_modules.
  • JsDoc types from files within the repository are fine.

Run

tsc

Note: Using a tsconfig.json or providing the needed parameters via cli did not make a difference.

Expected

Error "An argument for 'name' was not provided." for

msg += foo();
msg += bar();
msg += nom();

Actual

Error "An argument for 'name' was not provided." for

msg += bar();
msg += nom();

About


Languages

Language:JavaScript 84.3%Language:HTML 15.7%