Skip to content

Latest commit

 

History

History
58 lines (38 loc) · 1.37 KB

no-import-compiler-macros.md

File metadata and controls

58 lines (38 loc) · 1.37 KB
pageClass sidebarDepth title description since
rule-details
0
vue/no-import-compiler-macros
disallow importing Vue compiler macros
v10.0.0

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

🔍 Implementation