GeezerVison is showing github.com — Support for vue template files · Issue #4 · codeque-co/codeque
Support for vue template files #4
Description
I'm really looking forward for using this tool for our work codebase.
Unfortunately, as of now it doesn't seem to support Vue files.
https://vuejs.org/guide/scaling-up/sfc.html
They're usually set up like this:
<template>
<SomeStuff />
</template>
<script lang="ts" setup>
// ^ If lang isn't provided, it defaults to JS
// Setup property is optional
const abc = ref(0)
function xyz() {
return 1
}
</script>
Thank you and good job!
Activity
jayu commented on Dec 19, 2022
Thanks mate! I didn't work with Vue tbh, but it's such a big ecosystem that I think it's worth supporting in future!
I've planned to support other parsers/languages, sounds like Vue might be the first one :D
But at first I would like to add support for ESLint parser, and to achieve that I have to do some refactoring first.
I have a question regarding your preference, should CodeQue support only searching in the script part of the file, or in the template and style parts as well ?
KelpyCode commented on Dec 19, 2022
For me personally, I mostly need to search only the script part, but it would definitely be a great feature to also be able to search the template aswell. I don't see too much need in searching for CSS via AST methods though
jayu commented on Dec 20, 2022
Thanks! Actually I've checked and styles are not parsed to AST, so it would not work well anyway
But script and template are definetly doable
sschneider-ihre-pvs commented on Jun 7, 2023
sschneider-ihre-pvs commented on Jun 7, 2023
Thanks! Actually I've checked and styles are not parsed to AST, so it would not work well anyway
But script and template are definetly doable
Well, if you manage to support Tree-Sitter integration of new languages would be a breeze, I guess
Metadata
Metadata
Development
No branches or pull requestsIssue actions