Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

feat: add types to package - #1667

#1667
Merged
G-Rath merged 1 commit into
jest-community:mainjest-community/eslint-plugin-jest:mainfrom
mskelton:mskelton/add-typesmskelton/eslint-plugin-jest:mskelton/add-typesCopy head branch name to clipboard
Nov 5, 2024
Merged

feat: add types to package#1667
G-Rath merged 1 commit into
jest-community:mainjest-community/eslint-plugin-jest:mainfrom
mskelton:mskelton/add-typesmskelton/eslint-plugin-jest:mskelton/add-typesCopy head branch name to clipboard

Conversation

@mskelton

@mskelton mskelton commented Nov 4, 2024

Copy link
Copy Markdown
Contributor

Fixes #1469

I opted to generate the types manually with a hard coded index.d.ts file given that the types are very straightforward and the result works much better with typescript-eslint in my experience vs simply relying on tsc generated types.

@G-Rath G-Rath left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, a great start that just needs a few tweaks

Comment thread index.d.ts Outdated
Comment thread index.d.ts Outdated
Comment thread index.d.ts
environments: {
globals: {
globals: {
[key: string]: boolean;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note: ideally this should be Linter.GlobalConf, but that was introduced in @types/eslint@9

Comment thread .eslintignore Outdated
@mskelton

mskelton commented Nov 4, 2024

Copy link
Copy Markdown
Contributor Author

@G-Rath Updated per your suggestions

Comment thread index.d.ts Outdated

@G-Rath G-Rath left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

awesome, thanks!

@G-Rath
G-Rath merged commit 1ce1258 into jest-community:main Nov 5, 2024
github-actions Bot pushed a commit that referenced this pull request Nov 5, 2024
# [28.9.0](v28.8.3...v28.9.0) (2024-11-05)

### Features

* add TypeScript types ([#1667](#1667)) ([1ce1258](1ce1258))
@G-Rath

G-Rath commented Nov 5, 2024

Copy link
Copy Markdown
Collaborator

Apparently there's a recent issue with semantic-release that means it cannot find pull requests when looking to post its "this was released in ..." message, which should hopefully be fixed in the next few days (semantic-release/github#960) 😅

The release was still successful, so this has gone out in v28.9.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature: Generate typings for rules etc.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.