Files
test-repo/types/espree/index.d.ts
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
458 B
TypeScript
Raw Normal View History

2025-11-27 15:56:57 +08:00
declare module "espree" {
// https://github.com/eslint/espree#options
export interface Options {
range?: boolean;
loc?: boolean;
comment?: boolean;
tokens?: boolean;
ecmaVersion?: "latest";
sourceType?: "script" | "module" | "commonjs";
ecmaFeatures?: {
jsx?: boolean;
impliedStrict?: boolean;
};
}
// https://github.com/eslint/espree#parse
export function parse(code: string, options?: Options): any;
}