Skip to content

Commit 83b7c14

Browse files
committed
fix lint
1 parent 6ea52af commit 83b7c14

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

src/context/script-let.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ export class ScriptLetContext {
352352
const callArrayFrom = (call.callee as ESTree.MemberExpression)
353353
.object as ESTree.CallExpression;
354354
const expr = callArrayFrom.arguments[0] as ESTree.Expression;
355-
const ctx = fn.params[0]!;
355+
const ctx = fn.params[0];
356356
const idx = (fn.params[1] ?? null) as ESTree.Identifier | null;
357357
const scope = result.getScope(fn.body);
358358

tests/src/parser/parser.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,13 +153,15 @@ function checkLoc(ast: SvelteProgram, fileName: string, code: string) {
153153
if (nodeParent) {
154154
assert.ok(
155155
nodeParent.range?.[0] === parent?.range![0],
156-
`Parent range mismatch [${nodeParent
157-
?.range?.[0]} : ${parent?.range![0]}] @${astToJson(node)}`,
156+
`Parent range mismatch [${
157+
nodeParent?.range?.[0]
158+
} : ${parent?.range![0]}] @${astToJson(node)}`,
158159
);
159160
assert.ok(
160161
nodeParent.range?.[1] === parent?.range![1],
161-
`Parent range mismatch [${nodeParent
162-
?.range?.[1]} : ${parent?.range![1]}] @${astToJson(node)}`,
162+
`Parent range mismatch [${
163+
nodeParent?.range?.[1]
164+
} : ${parent?.range![1]}] @${astToJson(node)}`,
163165
);
164166
}
165167
assert.ok(

tsconfig.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414
"esModuleInterop": true,
1515
"resolveJsonModule": true,
1616

17-
"skipLibCheck": true
17+
"skipLibCheck": true,
1818
},
1919
"include": [
2020
"src/**/*.ts",
2121
"tests/**/*.ts",
2222
"tools/**/*.ts",
23-
"benchmark/**/*.ts"
24-
]
23+
"benchmark/**/*.ts",
24+
],
2525
}

0 commit comments

Comments
 (0)