Skip to content

Instantly share code, notes, and snippets.

@nklatt
Created January 27, 2025 22:52
Show Gist options
  • Save nklatt/8826b4d9dbda71c23c744ab16e19fa88 to your computer and use it in GitHub Desktop.
Save nklatt/8826b4d9dbda71c23c744ab16e19fa88 to your computer and use it in GitHub Desktop.
Vue + TypeScript SFC without script section causes ESLint error
If using Vue with TypeScript and ESLint and get the error message:
You have used a rule which requires type information, but don't have parserOptions set to generate type information for this file
it could be because you just created a new Vue single file component
with a <template> section but no <script setup lang="ts"> section.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment