8000 test: validate types in JS script tags by rchl · Pull Request #3465 · vuejs/language-tools · GitHub
[go: up one dir, main page]

Skip to content

test: validate types in JS script tags #3465

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
test: validate types in JS script tags
  • Loading branch information
rchl committed Aug 2, 2023
commit 5a1cf1151af23df47bc13ea3422a533d91ca3a78
3 changes: 2 additions & 1 deletion packages/vue-test-workspace/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"compilerOptions": {
"checkJs": true,
"lib": [
"esnext",
"dom"
Expand All @@ -24,4 +25,4 @@
"include": [
"**/*"
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
v-for="col in slotFilters"
:key="col"
#[`filter-cell-${col}`]="{ column }"
></template>
>{{ column }}</template>
</Foo>
</template>

<script setup></script>
<script setup>
const slotFilters = [1, 2]
</script>
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<script>
// @ts-expect-error
''.at('0');
</script>
0