Skip to content

Commit

Permalink
chore: add :exit for each node listener (#993)
Browse files Browse the repository at this point in the history
  • Loading branch information
baseballyama authored Jan 5, 2025
1 parent d01cd56 commit b97a13e
Show file tree
Hide file tree
Showing 4 changed files with 497 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/eighty-trainers-push.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'eslint-plugin-svelte': patch
---

chore: add `:exit` for each node listener
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import type { AST } from 'svelte-eslint-parser';
import type { TSESTree } from '@typescript-eslint/types';
import type { ASTNode, RuleContext, RuleListener } from '../../types.js';
import * as SV from './svelte.js';
import * as ES from './es.js';
Expand Down Expand Up @@ -244,7 +243,7 @@ export function defineVisitor(
offsets.ignore(node);
}
},
'Program:exit'(node: TSESTree.Program) {
'Program:exit'(node: AST.SvelteProgram) {
const calculator = offsets.getOffsetCalculator();

let prevToken: AnyToken | null = null;
Expand Down
Loading

0 comments on commit b97a13e

Please sign in to comment.