tslint-no-redundant-jsdoc-annotations
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

TSLint Rule: no-redundant-jsdoc-annotations

npm version Build Status Conventional Commits Renovate enabled

Disallows declaring JSDoc @tags or @annotations that may better expressed and/or better suited via Typescript's syntax. Typescript's syntax, of course, is strongly preferred given the type-related benefits that the language provides via hinting and at compilation time. Ultimately, this rule disallows annotations that can be extracted via Typescript's type engine.

Rationale

JSDoc provides the opportunity of expressing type definitions in Javascript comments via @tags or @annotations. However, most of those have a comparable and/or inherent way of being expressed by Typescript's syntax, therefore becoming redundant. Additionally, avoiding this type of redundancies may avoid conflicts with tooling that may add automatic JSDoc type annotations at compile time.

Package Sidebar

Install

npm i tslint-no-redundant-jsdoc-annotations

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

9.59 kB

Total Files

6

Last publish

Collaborators

  • emilio-martinez