29 lines
998 B
TypeScript
29 lines
998 B
TypeScript
import { type UserOptionParser } from "./resolve-parser";
|
|
export type NormalizedParserOptions = {
|
|
parser?: UserOptionParser;
|
|
project?: string | string[] | null;
|
|
ecmaVersion: number | "latest";
|
|
sourceType: "module" | "script";
|
|
ecmaFeatures?: {
|
|
globalReturn?: boolean | undefined;
|
|
impliedStrict?: boolean | undefined;
|
|
jsx?: boolean | undefined;
|
|
experimentalObjectRestSpread?: boolean | undefined;
|
|
[key: string]: any;
|
|
};
|
|
svelteFeatures?: {
|
|
runes?: boolean;
|
|
experimentalGenerics?: boolean;
|
|
};
|
|
loc: boolean;
|
|
range: boolean;
|
|
raw: boolean;
|
|
tokens: boolean;
|
|
comment: boolean;
|
|
eslintVisitorKeys: boolean;
|
|
eslintScopeManager: boolean;
|
|
filePath?: string;
|
|
};
|
|
/** Normalize parserOptions */
|
|
export declare function normalizeParserOptions(options: any): NormalizedParserOptions;
|
|
export declare function isTypeScript(parserOptions: NormalizedParserOptions, lang: string | undefined): boolean;
|