elearning/Frontend-Learner/node_modules/eslint-plugin-import-x/lib/utils/module-visitor.d.ts
2026-01-13 10:48:02 +07:00

11 lines
771 B
TypeScript

import type { JSONSchema, TSESLint, TSESTree } from '@typescript-eslint/utils';
export type Visitor = (source: TSESTree.StringLiteral, importer: TSESTree.ImportDeclaration | TSESTree.ExportNamedDeclaration | TSESTree.ExportAllDeclaration | TSESTree.CallExpression | TSESTree.ImportExpression | TSESTree.StringLiteral) => void;
export interface ModuleOptions {
amd?: boolean;
commonjs?: boolean;
esmodule?: boolean;
ignore?: string[];
}
export declare function moduleVisitor(visitor: Visitor, options?: ModuleOptions): TSESLint.RuleListener;
export declare function makeOptionsSchema(additionalProperties?: Record<string, JSONSchema.JSONSchema4>): JSONSchema.JSONSchema4ObjectSchema;
export declare const optionsSchema: JSONSchema.JSONSchema4ObjectSchema;