File tree Expand file tree Collapse file tree 3 files changed +32
-0
lines changed
tests/fixtures/integrations/type-info-tests Expand file tree Collapse file tree 3 files changed +32
-0
lines changed Original file line number Diff line number Diff line change 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 number Diff line number Diff line change 1+ []
Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments