1import { Lib } from './lib'; 2 3type DebugLevel = boolean | ('typescript-eslint' | 'eslint' | 'typescript')[]; 4 5type EcmaVersion = 6 | 3 7 | 5 8 | 6 9 | 7 10 | 8 11 | 9 12 | 10 13 | 11 14 | 2015 15 | 2016 16 | 2017 17 | 2018 18 | 2019 19 | 2020; 20 21type SourceType = 'script' | 'module'; 22 23interface ParserOptions { 24 ecmaFeatures?: { 25 globalReturn?: boolean; 26 jsx?: boolean; 27 }; 28 ecmaVersion?: EcmaVersion; 29 30 // scope-manager specific 31 jsxPragma?: string; 32 jsxFragmentName?: string | null; 33 lib?: Lib[]; 34 35 // typescript-estree specific 36 comment?: boolean; 37 debugLevel?: DebugLevel; 38 errorOnTypeScriptSyntacticAndSemanticIssues?: boolean; 39 errorOnUnknownASTType?: boolean; 40 EXPERIMENTAL_useSourceOfProjectReferenceRedirect?: boolean; // purposely undocumented for now 41 extraFileExtensions?: string[]; 42 filePath?: string; 43 loc?: boolean; 44 project?: string | string[]; 45 projectFolderIgnoreList?: (string | RegExp)[]; 46 range?: boolean; 47 sourceType?: SourceType; 48 tokens?: boolean; 49 tsconfigRootDir?: string; 50 useJSXTextNode?: boolean; 51 warnOnUnsupportedTypeScriptVersion?: boolean; 52} 53 54export { DebugLevel, EcmaVersion, ParserOptions, SourceType }; 55