Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Predefine TypeScript globals for no-undefined-types #839

Closed
brettz9 opened this issue Feb 14, 2022 · 1 comment
Closed

Predefine TypeScript globals for no-undefined-types #839

brettz9 opened this issue Feb 14, 2022 · 1 comment

Comments

@brettz9
Copy link
Collaborator

brettz9 commented Feb 14, 2022

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! We accept bounties via Bountysource.

@gajus
Copy link
Owner

gajus commented Mar 29, 2022

🎉 This issue has been resolved in version 38.1.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

@gajus gajus added the released label Mar 29, 2022
crapStone pushed a commit to Calciumdibromid/CaBr2 that referenced this issue Mar 31, 2022
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [eslint-plugin-jsdoc](https://github.com/gajus/eslint-plugin-jsdoc) | devDependencies | patch | [`38.1.3` -> `38.1.4`](https://renovatebot.com/diffs/npm/eslint-plugin-jsdoc/38.1.3/38.1.4) |

---

### Release Notes

<details>
<summary>gajus/eslint-plugin-jsdoc</summary>

### [`v38.1.4`](https://github.com/gajus/eslint-plugin-jsdoc/releases/v38.1.4)

[Compare Source](gajus/eslint-plugin-jsdoc@v38.1.3...v38.1.4)

##### Bug Fixes

-   **`no-undefined-types`:** add TypeScript utility types (globally allowed types); fixes [#&#8203;839](gajus/eslint-plugin-jsdoc#839) ([bf9f994](gajus/eslint-plugin-jsdoc@bf9f994))

</details>

---

### Configuration

📅 **Schedule**: At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox.

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).

Co-authored-by: cabr2-bot <cabr2.help@gmail.com>
Reviewed-on: https://codeberg.org/Calciumdibromid/CaBr2/pulls/1272
Reviewed-by: 6543 <6543@noreply.codeberg.org>
Co-authored-by: Calciumdibromid Bot <cabr2_bot@noreply.codeberg.org>
Co-committed-by: Calciumdibromid Bot <cabr2_bot@noreply.codeberg.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants