21 lines
588 B
TypeScript
21 lines
588 B
TypeScript
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";
|
|
ecmaFeatures?: {
|
|
jsx?: boolean;
|
|
globalReturn?: boolean;
|
|
impliedStrict?: boolean;
|
|
};
|
|
}
|
|
// https://github.com/eslint/espree#parse
|
|
export function parse(code: string, options?: Options): any;
|
|
// https://github.com/eslint/espree#tokenize
|
|
export function tokenize(code: string, options?: Options): any;
|
|
}
|