Skip to content

Commit 95c06e6

Browse files
committed
Merge commit '7c20c0ca52bdb740341e9907b7ae747351420be0' into ts
2 parents 499937d + 7c20c0c commit 95c06e6

File tree

3 files changed

+32
-0
lines changed

3 files changed

+32
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<script lang="ts">
2+
let foo: Promise<()=>void>
3+
</script>
4+
5+
{#await foo then bar}
6+
<button on:click={() => bar()} />
7+
{/await}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/* eslint eslint-comments/require-description: 0, @typescript-eslint/explicit-module-boundary-types: 0 */
2+
import type { Linter } from "eslint";
3+
import { BASIC_PARSER_OPTIONS } from "../../../src/parser/test-utils";
4+
import { rules } from "@typescript-eslint/eslint-plugin";
5+
export function setupLinter(linter: Linter) {
6+
linter.defineRule(
7+
"@typescript-eslint/no-unsafe-call",
8+
rules["no-unsafe-call"] as never
9+
);
10+
}
11+
12+
export function getConfig() {
13+
return {
14+
parser: "svelte-eslint-parser",
15+
parserOptions: BASIC_PARSER_OPTIONS,
16+
rules: {
17+
"@typescript-eslint/no-unsafe-call": "error",
18+
},
19+
env: {
20+
browser: true,
21+
es2021: true,
22+
},
23+
};
24+
}

0 commit comments

Comments
 (0)