News for hackers. Stuff that matters.
Re:Complete Rewrite of ESLint by graftak on Monday November 28, 2022 @11:21AM (#33775521)
Jsdoc has the same issue as regular comments. It’s not the source of truth but someone’s hopefully up to date version of the truth.
Re:Complete Rewrite of ESLint by runarberg on Monday November 28, 2022 @12:19PM (#33776349)
You’re wrong. TypeScript allows annotating types within JSDoc comments, and knows how to read it. Writing in JavaScript and using TypeScript as a type checker is a perfectly feasible option that many have picked (including this eslint rewrite).

https://www.typescriptlang.org/docs/handbook/jsdoc-supported...

Re:Complete Rewrite of ESLint by Xelynega on Sunday December 04, 2022 @06:28PM (#33859234)
AFAIK the only thing jsdoc "can't do" that typescript can is "generic types", which is just syntactic sugar for having a base type that all others inherit from.