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 composition api's computed function support to vue/no-async-in-computed-properties refs #1393 #1398

Merged

Conversation

sapphi-red
Copy link
Contributor

This PR adds support for composition api's computed function to vue/no-async-in-computed-properties.
refs #1393

@@ -2,21 +2,21 @@
pageClass: rule-details
sidebarDepth: 0
title: vue/no-async-in-computed-properties
description: disallow asynchronous actions in computed properties
description: disallow asynchronous actions in computed properties and functions
Copy link
Contributor Author

Choose a reason for hiding this comment

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

computed values maybe better?
I'm not sure how I should call it.

lib/utils/index.js Outdated Show resolved Hide resolved
lib/rules/no-async-in-computed-properties.js Outdated Show resolved Hide resolved
@sapphi-red
Copy link
Contributor Author

Thank you for reviewing! I fixed it.

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.

Looks good to me! Thank you!

@ota-meshi ota-meshi merged commit b5b6347 into vuejs:master Jan 3, 2021
@ota-meshi ota-meshi added the bug label Jan 5, 2021
@sapphi-red sapphi-red deleted the no-async-in-computed-properties--functions branch January 21, 2021 18:32
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

2 participants