How to enforce lang="ts" in script tags with an ESLint rule in Vue

Viewed 521

I'm looking for a way to enforce that everyone working on our code base use TypeScript for Single File Components. All the components use TypeScript, so disabling JavaScript is also an option.

I thought that this could be done with an ESLint rule, but I can’t find it.

1 Answers
Related