File tree Expand file tree Collapse file tree 4 files changed +8
-9
lines changed Expand file tree Collapse file tree 4 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -9,9 +9,7 @@ let btoa = () => {
99
1010if ( typeof window !== 'undefined' && typeof window . btoa === 'function' ) {
1111 btoa = ( str ) => window . btoa ( unescape ( encodeURIComponent ( str ) ) ) ;
12- // @ts -expect-error
1312} else if ( typeof Buffer === 'function' ) {
14- // @ts -expect-error
1513 btoa = ( str ) => Buffer . from ( str , 'utf-8' ) . toString ( 'base64' ) ;
1614}
1715
@@ -48,7 +46,7 @@ class SourceMap {
4846
4947/**
5048 * @template {BaseNode} [T=BaseNode]
51- * @param {{ type: string, [key: string]: any } } node
49+ * @param {T } node
5250 * @param {Visitors<T> } visitors
5351 * @param {PrintOptions } opts
5452 * @returns {{ code: string, map: any } } // TODO
Original file line number Diff line number Diff line change @@ -1524,10 +1524,11 @@ export default (options = {}) => {
15241524
15251525 context . write ( '(' ) ;
15261526
1527- // @ts -expect-error `acorn-typescript` and `@typescript-eslint/types` have slightly different type definitions
15281527 sequence (
15291528 context ,
1529+ // @ts -expect-error `acorn-typescript` and `@typescript-eslint/types` have slightly different type definitions
15301530 node . parameters ,
1531+ // @ts -expect-error `acorn-typescript` and `@typescript-eslint/types` have slightly different type definitions
15311532 node . typeAnnotation . typeAnnotation . loc ?. start ?? null ,
15321533 false
15331534 ) ;
Original file line number Diff line number Diff line change @@ -5,9 +5,8 @@ import { tsPlugin } from '@sveltejs/acorn-typescript';
55
66/** @import { TSESTree } from '@typescript-eslint/types' */
77
8- // @ts -expect-error
9- export const acornTs = acorn . Parser . extend ( tsPlugin ( { allowSatisfies : true } ) ) ;
10- export const acornTsx = acorn . Parser . extend ( tsPlugin ( { allowSatisfies : true , jsx : true } ) ) ;
8+ export const acornTs = acorn . Parser . extend ( tsPlugin ( ) ) ;
9+ export const acornTsx = acorn . Parser . extend ( tsPlugin ( { jsx : true } ) ) ;
1110
1211/** @param {string } input
1312 * @param {{ jsx?: boolean } } opts
Original file line number Diff line number Diff line change 77 "target" : " esnext" ,
88 "module" : " esnext" ,
99 "moduleResolution" : " bundler" ,
10- "lib" : [" esnext" , " dom" ]
10+ "lib" : [" esnext" , " dom" ],
11+ "skipLibCheck" : true
1112 },
12- "include" : [" ./src/**/*.js" ]
13+ "include" : [" ./src/**/*.js" , " ./test/*.js " ]
1314}
You can’t perform that action at this time.
0 commit comments