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

Add type-based declaration rule of defineProps and defineEmits #1968

Merged
merged 20 commits into from
Sep 16, 2022

Conversation

Amorites
Copy link
Contributor

Implement #1960 #1959

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Copy link
Member

@ota-meshi ota-meshi left a comment

Choose a reason for hiding this comment

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

Thank you for this PR! Almost looks good!! I have a minor change request.

Amorites and others added 2 commits September 13, 2022 10:42
Co-authored-by: Yosuke Ota <otameshiyo23@gmail.com>
Co-authored-by: Yosuke Ota <otameshiyo23@gmail.com>
Copy link
Member

@ota-meshi ota-meshi left a comment

Choose a reason for hiding this comment

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

LGTM! Thank you!

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@Amorites
Copy link
Contributor Author

Found Parsing error in docs editor and removed eslint-code-block. Maybe I could look into a solution and get it back later.

@ota-meshi
Copy link
Member

Good point. The current documentation site does not parse typescript.

Copy link
Member

@FloEdelmann FloEdelmann left a comment

Choose a reason for hiding this comment

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

Thanks for the implementation! Everything looks fine, but I have a few suggestions.

Amorites and others added 4 commits September 14, 2022 20:04
Co-authored-by: Flo Edelmann <florian-edelmann@online.de>
Co-authored-by: Flo Edelmann <florian-edelmann@online.de>

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Amorites and others added 4 commits September 15, 2022 19:15
Co-authored-by: Flo Edelmann <florian-edelmann@online.de>
Co-authored-by: Flo Edelmann <florian-edelmann@online.de>

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Co-authored-by: Flo Edelmann <florian-edelmann@online.de>
Co-authored-by: Flo Edelmann <florian-edelmann@online.de>
Copy link
Member

@FloEdelmann FloEdelmann left a comment

Choose a reason for hiding this comment

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

One more final thing :)

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Copy link
Member

@FloEdelmann FloEdelmann left a comment

Choose a reason for hiding this comment

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

Looks good to me now. Thanks for the changes! (I'll apply the two remaining docs changes myself.)

@ota-meshi can you please clear the cache in Netlify for https://deploy-preview-1968--eslint-plugin-vue.netlify.app/rules/define-props-declaration.html, so we can have a look at the examples there?

@ota-meshi
Copy link
Member

I have cleared the cache and retried. You can see it now 👍
https://deploy-preview-1968--eslint-plugin-vue.netlify.app/rules/define-props-declaration.html

Copy link
Member

@FloEdelmann FloEdelmann left a comment

Choose a reason for hiding this comment

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

Looks like this is ready to merge then :)

@ota-meshi ota-meshi merged commit 4383a86 into vuejs:master Sep 16, 2022
@mesqueeb
Copy link
Contributor

@ota-meshi defineProps example has some defineEmits code

@Amorites
Copy link
Contributor Author

Sorry about that, I made a new PR to fix it. #1977

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.

Force TypeScript only defineEmits Force TypeScript only defineProps
4 participants