eslint-plugin-vue
eslint-plugin-vue copied to clipboard
implements proposed max-props rule
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>
Should work for defineProps
with type-only declaration now.
Thank you for the review! I have implemented the requested changes :)