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

Improve types #420

Merged
merged 9 commits into from Oct 26, 2019
Merged

Improve types #420

merged 9 commits into from Oct 26, 2019

Conversation

G-Rath
Copy link
Collaborator

@G-Rath G-Rath commented Sep 29, 2019

Removes most of our type casts, making things a bit nicer.

This will cause a merge conflict w/ #419

Copy link
Member

@jeysal jeysal left a comment

Choose a reason for hiding this comment

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

TS' type system is nice 👍

src/rules/__tests__/lowercase-name.test.ts Outdated Show resolved Hide resolved
src/rules/consistent-test-it.ts Outdated Show resolved Hide resolved
Copy link
Member

@SimenB SimenB left a comment

Choose a reason for hiding this comment

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

Except for the default params @jeysal pointed out, this LGTM.

(enum vs string union - I'm -0 on changing since it's more verbose, but it's way easier to find usage, so I don't mind)

@G-Rath
Copy link
Collaborator Author

G-Rath commented Oct 26, 2019

I'm going to merge this as I think the remaining unresolved comment isn't worth blocking on: if it is a problem, it'll mean rethinking our coverage, and/or waiting for a bug fix on another package.

It's pretty easy to address in post if we want :)

Cheers for the reviews!

@G-Rath G-Rath merged commit f07a10f into master Oct 26, 2019
@G-Rath G-Rath deleted the improve-types branch October 26, 2019 22:32
@github-actions
Copy link

🎉 This PR is included in version 22.21.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants