UNPKG

eslint-codemod-utils

Version:

A collection of AST helper functions for more complex ESLint rule fixes.

8 lines (7 loc) 228 B
import type { Rule } from 'eslint'; /** * Insert a generic string as a `Rule.Fix` at the start of a file. * * @returns {Rule.Fix} */ export declare function insertAtStartOfFile(fixer: Rule.RuleFixer, str: string): Rule.Fix;