Skip to content

Commit b97a13e

Browse files
authored
chore: add :exit for each node listener (#993)
1 parent d01cd56 commit b97a13e

File tree

4 files changed

+497
-2
lines changed

4 files changed

+497
-2
lines changed

.changeset/eighty-trainers-push.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'eslint-plugin-svelte': patch
3+
---
4+
5+
chore: add `:exit` for each node listener

packages/eslint-plugin-svelte/src/rules/indent-helpers/index.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import type { AST } from 'svelte-eslint-parser';
2-
import type { TSESTree } from '@typescript-eslint/types';
32
import type { ASTNode, RuleContext, RuleListener } from '../../types.js';
43
import * as SV from './svelte.js';
54
import * as ES from './es.js';
@@ -244,7 +243,7 @@ export function defineVisitor(
244243
offsets.ignore(node);
245244
}
246245
},
247-
'Program:exit'(node: TSESTree.Program) {
246+
'Program:exit'(node: AST.SvelteProgram) {
248247
const calculator = offsets.getOffsetCalculator();
249248

250249
let prevToken: AnyToken | null = null;

0 commit comments

Comments
 (0)