Skip to content

[Rule] Adding lang="ts" to script tag? #3

@jd-solanki

Description

@jd-solanki

🎯 Type of Improvement

Better TypeScript examples

📖 Rule Section (if applicable)

None

🚨 Problem

Hi 👋🏻

As most of the developers are using typescript these days, it will be better to add language attribute to script tag.

If you allow, I can add a PR that performs this change.

💡 Proposed Solution

```vue
<script setup lang="ts">
// ---
</script>

🤖 AI Testing

  • Tested with Cursor - works well
  • Tested with Claude - works well
  • Tested with ChatGPT - works well
  • Tested with GitHub Copilot - works well
  • Tested with other AI - works well
  • Tested but still has issues
  • Not tested yet

📈 Priority Level

Low (Nice to have)

🔗 Nuxt UI Documentation Reference

No response

📝 Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions