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

implements proposed max-props rule

Open kevsommer opened this issue 11 months ago • 1 comments

This is a WIP PR that addresses issue #2429.

It implements the rule for both, the Composition and Options API.

However, I haven't been able to get the case for defineProps with type-only declaration to work.

<script setup lang="ts">
defineProps<{ prop1: string, prop2: string, }>();
</script>

kevsommer avatar Mar 15 '24 16:03 kevsommer

Should work for defineProps with type-only declaration now.

kevsommer avatar Jun 25 '24 08:06 kevsommer

Thank you for the review! I have implemented the requested changes :)

kevsommer avatar Jul 03 '24 10:07 kevsommer