vue/no-import-compiler-macros
disallow importing Vue compiler macros
- 🔧 The
--fix
option on the command line can automatically fix some of the problems reported by this rule.
📖 Rule Details
This rule disallow importing vue compiler macros.
<script setup>
/* ✗ BAD */
import { defineProps, withDefaults } from 'vue'
</script>
<script setup>
/* ✓ GOOD */
import { ref } from 'vue'
</script>
🔧 Options
Nothing.
📚 Further Reading
🚀 Version
This rule was introduced in eslint-plugin-vue v10.0.0