39 lines
793 B
TypeScript
39 lines
793 B
TypeScript
declare module "espree" {
|
|
// https://github.com/eslint/espree#options
|
|
export interface Options {
|
|
range?: boolean;
|
|
loc?: boolean;
|
|
comment?: boolean;
|
|
tokens?: boolean;
|
|
ecmaVersion?:
|
|
| 3
|
|
| 5
|
|
| 6
|
|
| 7
|
|
| 8
|
|
| 9
|
|
| 10
|
|
| 11
|
|
| 12
|
|
| 2015
|
|
| 2016
|
|
| 2017
|
|
| 2018
|
|
| 2019
|
|
| 2020
|
|
| 2021
|
|
| 2022
|
|
| "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;
|
|
}
|