We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
import/first
.vue
<script>
<script setup>
The import/first rule causes Vue components that have both <script> and <script setup> tags to break because of the auto fix.
With the rule this code
<script lang="ts"> export const myVar = {}; </script> <script lang="ts" setup> import foo from './foo.vue' </script>
would be "fixed" into this
<script lang="ts"> </script> <script lang="ts" setup> import foo from './foo.vue' export const myVar = {}; </script>
which breaks the export, since Vue SFC components can't export anything other than types from the script setup block.
script setup
See vuejs/eslint-plugin-vue#1577 and unovue/radix-vue#313 for references.
I suggest disabling this rule for **/*.vue files.
**/*.vue
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The
import/first
rule causes Vue components that have both<script>
and<script setup>
tags to break because of the auto fix.With the rule this code
would be "fixed" into this
which breaks the export, since Vue SFC components can't export anything other than types from the
script setup
block.See vuejs/eslint-plugin-vue#1577 and unovue/radix-vue#313 for references.
I suggest disabling this rule for
**/*.vue
files.The text was updated successfully, but these errors were encountered: