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

Adjust emits option #3773

Merged
merged 1 commit into from
Feb 17, 2023
Merged

Adjust emits option #3773

merged 1 commit into from
Feb 17, 2023

Conversation

raimund-schluessler
Copy link
Contributor

No effect for vue2, required for vue3. Makes the migration in #3692 a tiny bit shorter.

Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
Copy link
Contributor

@ShGKme ShGKme left a comment

Choose a reason for hiding this comment

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

It also helps with documentation and IDE. For example, the latest WebStorm EAP adds autocomplete for $emit: https://blog.jetbrains.com/webstorm/2023/02/webstorm-2023-1-eap-4/#completion_for_custom_component_events_in_vue

Should we add ESLint rule to catch it?

vue/require-explicit-emits

@raimund-schluessler
Copy link
Contributor Author

Should we add ESLint rule to catch it?

vue/require-explicit-emits

I don't know if it's worth adding the rule for vue2. It will come automatically with the vue3 migration.

@ShGKme
Copy link
Contributor

ShGKme commented Feb 17, 2023

I don't know if it's worth adding the rule for vue2. It will come automatically with the vue3 migration.

Documentation, IDE support.

This PR adds missed emits. ESLint may help not to miss them.

@Pytal Pytal added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Feb 17, 2023
@Pytal Pytal merged commit 3c61fd5 into master Feb 17, 2023
@Pytal Pytal deleted the fix/noid/emits branch February 17, 2023 17:55
@szaimen szaimen mentioned this pull request Feb 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish technical debt
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants