Skip to content

vue/valid-define-options

enforce valid defineOptions compiler macro

This rule checks whether defineOptions compiler macro is valid.

📖 Rule Details

This rule reports defineOptions compiler macros in the following cases:

  • defineOptions is referencing locally declared variables.
  • defineOptions has been called multiple times.
  • Options are not defined in defineOptions.
  • defineOptions has type arguments.
  • defineOptions has props, emits, expose or slots options.
Now loading...
Now loading...
Now loading...
Now loading...
Now loading...
Now loading...
Now loading...

🔧 Options

Nothing.

🚀 Version

This rule was introduced in eslint-plugin-vue v9.13.0

🔍 Implementation