You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
591 B
27 lines
591 B
5 months ago
|
import type { Rule } from 'eslint';
|
||
|
import type { Node } from 'estree';
|
||
|
|
||
|
type Visitor = (source: Node, importer: unknown) => any;
|
||
|
|
||
|
type Options = {
|
||
|
amd?: boolean;
|
||
|
commonjs?: boolean;
|
||
|
esmodule?: boolean;
|
||
|
ignore?: string[];
|
||
|
};
|
||
|
|
||
|
declare function moduleVisitor(
|
||
|
visitor: Visitor,
|
||
|
options?: Options,
|
||
|
): object;
|
||
|
|
||
|
export default moduleVisitor;
|
||
|
|
||
|
export type Schema = NonNullable<Rule.RuleModule['schema']>;
|
||
|
|
||
|
declare function makeOptionsSchema(additionalProperties?: Partial<Schema>): Schema
|
||
|
|
||
|
declare const optionsSchema: Schema;
|
||
|
|
||
|
export { makeOptionsSchema, optionsSchema };
|