eslint-plugin-path
Version:
An ESLint plugin for enforcing consistent imports across project. In other words, it helps to replace all relatives import with absolutes dependinng on settings.
23 lines • 606 B
TypeScript
import { Rule } from "eslint";
import { AliasItem } from "./config";
/**
* ImportHandlerParams type definition
*/
interface ImportHandlerParams {
node: any;
value: string;
path: string;
start: number;
end: number;
packagePath: string;
configSettings: AliasItem[];
filename: string;
}
/**
* ESLint rule handler
* @param context - The ESLint rule context
* @param callback - The callback function to call
*/
export declare function getImport(context: Rule.RuleContext, callback: (params: ImportHandlerParams) => void): any;
export {};
//# sourceMappingURL=index.d.ts.map