gajus / eslint-plugin-jsdoc

JSDoc specific linting rules for ESLint.
Other
1.1k stars 159 forks source link

Predefine TypeScript globals for `no-undefined-types` #839

Closed brettz9 closed 2 years ago

brettz9 commented 2 years ago

Motivation

Current behavior

Using TypeScript built-in globals such ReturnType<Type> brings errors from the no-undefined-types rule.

Desired behavior

Include these by default in typescript mode: https://www.typescriptlang.org/docs/handbook/utility-types.html

Alternatives considered

Require the user to predefine them. Cumbersome and duplicates effort across projects.

--- Want to back this issue? **[Post a bounty on it!](https://app.bountysource.com/issues/106102210-predefine-typescript-globals-for-no-undefined-types?utm_campaign=plugin&utm_content=tracker%2F23037809&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://app.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F23037809&utm_medium=issues&utm_source=github).
gajus commented 2 years ago

:tada: This issue has been resolved in version 38.1.4 :tada:

The release is available on:

Your semantic-release bot :package::rocket: