Skip to content

Conversation

g-plane
Copy link
Contributor

@g-plane g-plane commented Mar 3, 2021

This PR allows two cases below with rule require-direct-export enabled:

import Vue from 'vue'

export default Vue.extend({})
import { defineComponent } from 'vue'

export default defineComponent({})

which will benefit TypeScript users.

Fixes #907

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! I would like to include this change in the next release.

@ota-meshi ota-meshi merged commit ff8cfaa into vuejs:master Mar 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

require-direct-export rule doesn't work with export default Vue.extend({})
2 participants