1 | import type { Rule } from 'eslint';
|
2 | import type { Node } from 'estree';
|
3 |
|
4 | type Visitor = (source: Node, importer: unknown) => any;
|
5 |
|
6 | type Options = {
|
7 | amd?: boolean;
|
8 | commonjs?: boolean;
|
9 | esmodule?: boolean;
|
10 | ignore?: string[];
|
11 | };
|
12 |
|
13 | declare function moduleVisitor(
|
14 | visitor: Visitor,
|
15 | options?: Options,
|
16 | ): object;
|
17 |
|
18 | export default moduleVisitor;
|
19 |
|
20 | export type Schema = NonNullable<Rule.RuleModule['schema']>;
|
21 |
|
22 | declare function makeOptionsSchema(additionalProperties?: Partial<Schema>): Schema
|
23 |
|
24 | declare const optionsSchema: Schema;
|
25 |
|
26 | export { makeOptionsSchema, optionsSchema };
|