eslint-plugin-vue icon indicating copy to clipboard operation
eslint-plugin-vue copied to clipboard

Add support for Reactivity Transform

Open ota-meshi opened this issue 2 years ago • 1 comments

Lists the work this plugin needs to do to support Reactivity Transform.

Note These changes will be released after the RFCs have been merged.

  • [ ] Related to new compiler macros.
    • [ ] Provide an env with global variables listed. https://eslint.org/docs/latest/developer-guide/working-with-plugins#environments-in-plugins
  • [ ] Related to the change of defineProps().
    • [ ] Change vue/no-setup-props-destructure rule. Destructuring assignment immediately after defineProps() is allowed. However, Vue2 doesn't allow to use Reactivity Transform, so we may need to split rules.
    • [ ] Change vue/require-valid-default-prop rule.
    • [ ] Change vue/require-default-prop rule.
    • [ ] Change vue/no-boolean-default rule. We need to support a new way to specify defaults.

And more?

Additional context

Docs: https://vuejs.org/guide/extras/reactivity-transform.html PR: https://github.com/vuejs/rfcs/pull/420 Discussion: https://github.com/vuejs/rfcs/discussions/369

ota-meshi avatar Aug 17 '22 07:08 ota-meshi

related to #1793, #1798, #1799, #1947

ota-meshi avatar Aug 17 '22 07:08 ota-meshi

Since Reactivity Transform is dropped & deprecated, so can we just close this issue?

sxzz avatar Mar 22 '23 20:03 sxzz

Thanks for letting me know! I will close this issue.

ota-meshi avatar Mar 22 '23 23:03 ota-meshi

Reactivity Transform has been moved to a Vue macro, would that make it reasonable to re-open this ticket, for developers who use this macro?

bperel avatar May 24 '23 11:05 bperel

@bperel Vue Macros will add ESLint support soon.

sxzz avatar May 24 '23 11:05 sxzz