src/language-js/parser-typescript.js/tryParseTypeScript
function tryParseTypeScript(text, jsx) {
  const { parseWithNodeMaps } = require("@typescript-eslint/typescript-estree");
  return parseWithNodeMaps(text, {
    // `jest@<=26.4.2` rely on `loc`
    // https://github.com/facebook/jest/issues/10444
    loc: true,
    range: true,
    comment: true,
    useJSXTextNode: true,
    jsx,
    tokens: true,
    loggerFn: false,
    project: [],
  });
}