vue/no-undef-directives
disallow use of undefined custom directives
- ❗ This rule has not been released yet.
📖 Rule Details
This rule reports directives that are used in the <template>, but that are not registered in the <script setup> or the Options API's directives section.
Undefined directives will be resolved from globally registered directives. However, if you are not using global directives, you can use this rule to prevent runtime errors.
🔧 Options
json
{
"vue/no-undef-directives": ["error", {
"ignore": ["foo"]
}]
}"ignore"(string[]) An array of directive names or regular expression patterns (e.g."/^custom-/") that ignore these rules. This option will check both kebab-case and PascalCase versions of the given directive names. Default is empty.
"ignore": ["foo"]