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

Refactor Cosmiconfig types #7543

Merged
merged 4 commits into from
Apr 19, 2024
Merged

Refactor Cosmiconfig types #7543

merged 4 commits into from
Apr 19, 2024

Conversation

ybiquitous
Copy link
Member

@ybiquitous ybiquitous commented Feb 26, 2024

Which issue, if any, is this issue related to?

None.

Is there anything in the PR that needs further explanation?

Allowing the CosmiconfigResult type to receive a type parameter can make the code a bit type-safer because the any type is no longer used.
Ref https://github.com/cosmiconfig/cosmiconfig/blob/v9.0.0/src/types.ts#L11

Note this change includes a patch for the type defined in the cosmiconfig package. I will open a pull request in the package repository soon.

This comment was marked as resolved.

Allowing the `CosmiconfigResult` type to receive a type parameter can make the code a bit type-safer
because the `any` type is no longer used.
Ref https://github.com/cosmiconfig/cosmiconfig/blob/v9.0.0/src/types.ts#L11

Note this change includes a patch for the type defined in the `cosmiconfig` package.
@ybiquitous ybiquitous marked this pull request as ready for review April 5, 2024 00:44
@ybiquitous
Copy link
Member Author

I just transitioned this PR to ready for review because this patch benefits. I would be happy if someone could take a look. 🙏🏼

@ybiquitous
Copy link
Member Author

There is no review yet, but I believe this helps detect issues like 9c7bbe3. So I'll merge this.

@ybiquitous ybiquitous merged commit 9afaa08 into main Apr 19, 2024
15 of 16 checks passed
@ybiquitous ybiquitous deleted the refactor-cosmiconfig-types branch April 19, 2024 14:08
ybiquitous added a commit that referenced this pull request Apr 27, 2024
emmacharp pushed a commit to emmacharp/stylelint that referenced this pull request May 7, 2024
Allowing the `CosmiconfigResult` type to receive a type parameter can make the code a bit type-safer
because the `any` type is no longer used.
Ref https://github.com/cosmiconfig/cosmiconfig/blob/v9.0.0/src/types.ts#L11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant