pageClass | sidebarDepth | title | description | since |
---|---|---|---|---|
rule-details |
0 |
vue/no-import-compiler-macros |
disallow importing Vue compiler macros |
v10.0.0 |
disallow importing Vue compiler macros
- 🔧 The
--fix
option on the command line can automatically fix some of the problems reported by this rule.
This rule disallow importing vue compiler macros.
<script setup>
/* ✗ BAD */
import { defineProps, withDefaults } from 'vue'
</script>
<script setup>
/* ✓ GOOD */
import { ref } from 'vue'
</script>
Nothing.
This rule was introduced in eslint-plugin-vue v10.0.0