Skip to content

Commit

Permalink
chore: update deps and update fixtures (#541)
Browse files Browse the repository at this point in the history
  • Loading branch information
ota-meshi committed Jun 18, 2024
1 parent 10d6af6 commit bc4128e
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 18 deletions.
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,40 +73,40 @@
"@types/eslint-visitor-keys": "^3.3.0",
"@types/estree": "^1.0.5",
"@types/mocha": "^10.0.6",
"@types/node": "^20.14.2",
"@types/node": "^20.14.4",
"@types/semver": "^7.5.8",
"@typescript-eslint/eslint-plugin": "^7.12.0",
"@typescript-eslint/parser": "~7.13.0",
"@typescript-eslint/types": "~7.13.0",
"@typescript-eslint/eslint-plugin": "^7.13.1",
"@typescript-eslint/parser": "~7.13.1",
"@typescript-eslint/types": "~7.13.1",
"benchmark": "^2.1.4",
"chai": "^4.4.1",
"env-cmd": "^10.1.0",
"esbuild": "^0.21.4",
"esbuild": "^0.21.5",
"esbuild-register": "^3.5.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-json-schema-validator": "^5.1.0",
"eslint-plugin-jsonc": "^2.16.0",
"eslint-plugin-n": "^17.8.1",
"eslint-plugin-n": "^17.9.0",
"eslint-plugin-node-dependencies": "^0.12.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-regexp": "^2.6.0",
"eslint-plugin-svelte": "^2.39.2",
"eslint-plugin-svelte": "^2.40.0",
"eslint-plugin-yml": "^1.14.0",
"estree-walker": "^3.0.3",
"locate-character": "^3.0.0",
"magic-string": "^0.30.10",
"mocha": "^10.4.0",
"mocha-chai-jest-snapshot": "^1.1.4",
"nyc": "^17.0.0",
"prettier": "~3.3.0",
"prettier": "~3.3.2",
"prettier-plugin-pkg": "^0.18.1",
"prettier-plugin-svelte": "^3.2.4",
"rimraf": "^5.0.7",
"semver": "^7.6.2",
"svelte": "^5.0.0-next.152",
"svelte2tsx": "^0.7.9",
"svelte": "^5.0.0-next.158",
"svelte2tsx": "^0.7.10",
"typescript": "~5.4.5",
"typescript-eslint-parser-for-extra-files": "^0.7.0"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="typescript">
import Component from 'foo.svelte' // Component: typeof SvelteComponent
import Component from 'foo.svelte' // Component: ComponentType
</script>
<button onclick="{e=>{}}"></button> <!-- e: MouseEvent & { currentTarget: EventTarget & HTMLButtonElement; } -->
<Component onclick="{e=>{}}"></Component> <!-- Component: typeof SvelteComponent, e: any -->
<Component onclick="{e=>{}}"></Component> <!-- Component: ComponentType, e: any -->
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<script lang="ts">
import Component from './ts-event03-input.svelte'; // Component: typeof SvelteComponent
import Component from './ts-event03-input.svelte'; // Component: ComponentType
</script>

<Component onfoo="{e=>{ // Component: typeof SvelteComponent, e: any
<Component onfoo="{e=>{ // Component: ComponentType, e: any
// e.detail is number
// `@typescript-eslint/parser` doesn't get the correct types.
// Using `typescript-eslint-parser-for-extra-files` will give we the correct types.
Expand Down
4 changes: 2 additions & 2 deletions tests/fixtures/parser/ast/ts-event02-type-output.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="typescript">
import Component from 'foo.svelte' // Component: typeof SvelteComponent
import Component from 'foo.svelte' // Component: ComponentType
</script>
<button on:click="{e=>{}}"></button> <!-- e: MouseEvent & { currentTarget: EventTarget & HTMLButtonElement; } -->
<Component on:click="{e=>{}}"></Component> <!-- Component: typeof SvelteComponent, e: CustomEvent<any> -->
<Component on:click="{e=>{}}"></Component> <!-- Component: ComponentType, e: CustomEvent<any> -->
4 changes: 2 additions & 2 deletions tests/fixtures/parser/ast/ts-event05-type-output.svelte
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<script lang="ts">
import Component from './ts-event03-input.svelte'; // Component: typeof SvelteComponent
import Component from './ts-event03-input.svelte'; // Component: ComponentType
</script>

<Component on:foo="{e=>{ // Component: typeof SvelteComponent, e: CustomEvent<any>
<Component on:foo="{e=>{ // Component: ComponentType, e: CustomEvent<any>
// e.detail is number
// `@typescript-eslint/parser` doesn't get the correct types.
// Using `typescript-eslint-parser-for-extra-files` will give we the correct types.
Expand Down

0 comments on commit bc4128e

Please sign in to comment.