Closed
Description
Suggestion
π
β nx run parser:build
$ tsc -b tsconfig.build.json
src/parser.ts(108,5): error TS2322: Type '{ ecmaVersion: number | undefined; globalReturn: boolean | undefined; jsxPragma: string | null | undefined; jsxFragmentName: string | null | undefined; lib: Lib[] | undefined; sourceType: "script" | "module"; }' is not assignable to type 'AnalyzeOptions'.
Object literal may only specify known properties, and 'ecmaVersion' does not exist in type 'AnalyzeOptions'.
josh ~/repos/typescript-eslint/packages/parser $ yarn build
yarn run v1.22.19
$ tsc -b tsconfig.build.json
src/parser.ts:108:5 - error TS2322: Type '{ ecmaVersion: number | undefined; globalReturn: boolean | undefined; jsxPragma: string | null | undefined; jsxFragmentName: string | null | undefined; lib: Lib[] | undefined; sourceType: "script" | "module"; }' is not assignable to type 'AnalyzeOptions'.
Object literal may only specify known properties, and 'ecmaVersion' does not exist in type 'AnalyzeOptions'.
108 ecmaVersion: options.ecmaVersion === 'latest' ? 1e8 : options.ecmaVersion,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Found 1 error.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.