BenoitZugmeyer / eslint-plugin-html

An ESLint plugin to extract and lint scripts from HTML files.
ISC License
430 stars 51 forks source link

disable eslint in vue files whose script has property lang="ts" #74

Closed vonweb closed 7 years ago

vonweb commented 7 years ago

can i disable eslint in vue files whose script has property lang="ts"; i know if i set type on script with value not match javascript-mime-types, i will be there, but is there any easier way? lang="ts" is already set

BenoitZugmeyer commented 7 years ago

No, it's not possible. The lang attribute has no meaning in HTML5, unlike the type attribute used to define how to interpret the content of the tag (documentation). Like you suggested, if it is TypeScript code, you should set the type value to something else (example].