snyk / vulncost

Find security vulnerabilities in open source npm packages while you code
https://marketplace.visualstudio.com/items?itemName=snyk-security.vscode-vuln-cost
MIT License
200 stars 34 forks source link

Not working in .vue files #41

Open LeoMartinDev opened 3 years ago

LeoMartinDev commented 3 years ago

The extension does not seem to be working with .vue files.

bmvermeer commented 3 years ago

That seems to be correct. Can you provide an example of a vue file as I am not familiar with it. TY

LeoMartinDev commented 3 years ago

You can learn more about vue single-file components (.vue files) here https://vuejs.org/v2/guide/single-file-components.html

A basic example :

<template>
  <h2>Hello, {{ personName }}!</h2>
</template>
<script>
export default {
  data: () => {
    personName: 'Léo',
  },
}
</script>
<style scoped>
  h2 {
    font-size: 40px;
    color: black;
  }
</style>