astro-ghostcms/.pnpm-store/v3/files/38/d42a9afdf46b18d108fe463b9dd...

16 lines
628 B
Plaintext

import type { AST, Rule } from "eslint";
import type { RuleFixer, SourceCode } from "../types";
import type { TSESTree } from "@typescript-eslint/types";
declare class FixTracker {
private retainedRange;
fixer: RuleFixer;
sourceCode: SourceCode;
constructor(fixer: RuleFixer, sourceCode: SourceCode);
private retainRange;
retainEnclosingFunction(node: TSESTree.Node): this;
retainSurroundingTokens(nodeOrToken: AST.Token | TSESTree.Token | TSESTree.Node): this;
private replaceTextRange;
remove(nodeOrToken: TSESTree.Node | TSESTree.Token | AST.Token): Rule.Fix;
}
export default FixTracker;