You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We're using Typescript and Vue SFC files, but it is very easy to create a new component file and forget to add a lang="ts" attribute to the script tag, and missing out on some type checking.
We also use <style lang="scss">.
The text was updated successfully, but these errors were encountered:
I looked around a while ago to see if it was feasible for me to implement this. It seems this would require more information from the vue parser, as there is little info of the top level tag attributes <script> <template> <style>.
Came here looking for a solution to this very "problem". I think if this were to be implemented it could be a good idea to allow for multiple languages to be configured per block. Say for example you use both SCSS and CSS.
Please describe what the rule should do:
Limit the languages used in all Vue SFC files for template, script and style blocks.
What category should the rule belong to?
[ ] Enforces code style (layout)
[ ] Warns about a potential error (problem)
[ ] Suggests an alternate way of doing something (suggestion)
[ X] Other (please specify:)
Enforces code language.
Provide 2-3 code examples that this rule should warn about:
Using rule config:
Additional context
We're using Typescript and Vue SFC files, but it is very easy to create a new component file and forget to add a
lang="ts"
attribute to the script tag, and missing out on some type checking.We also use
<style lang="scss">
.The text was updated successfully, but these errors were encountered: