- Operating system: Windows 10 (WSL2 - Ubuntu 20.04)
- SonarLint plugin version: v3.6.0
- Is connected mode used: Yes
- Connected to SonarCloud or SonarQube (and which version): SonarQube Community
And a thorough description of the problem / question:
The following code produces the error
Remove this unused import of 'MyAwesomeComponent'. sonarlint(javascript:S1128)
on the line with the import statement.
<template>
<my-awesome-component />
</template>
<script setup>
import MyAwesomeComponent from '@/components/MyAwesomeComponent.vue'
</script>
Making the following modification resolves the error:
<template>
<awesome-component />
</template>
<script setup>
import AwesomeComponent from '@/components/MyAwesomeComponent.vue'
</script>
This seems to be a bug?