tsOptions.js 979 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /**
  2. * Copyright (c) Facebook, Inc. and its affiliates.
  3. *
  4. * This source code is licensed under the MIT license found in the
  5. * LICENSE file in the root directory of this source tree.
  6. */
  7. 'use strict';
  8. /**
  9. * Options shared by the TypeScript and TSX parsers.
  10. */
  11. module.exports = {
  12. sourceType: 'module',
  13. allowImportExportEverywhere: true,
  14. allowReturnOutsideFunction: true,
  15. startLine: 1,
  16. tokens: true,
  17. plugins: [
  18. 'asyncGenerators',
  19. 'bigInt',
  20. 'classPrivateMethods',
  21. 'classPrivateProperties',
  22. 'classProperties',
  23. 'decorators-legacy',
  24. 'doExpressions',
  25. 'dynamicImport',
  26. 'exportDefaultFrom',
  27. 'exportExtensions',
  28. 'exportNamespaceFrom',
  29. 'functionBind',
  30. 'functionSent',
  31. 'importMeta',
  32. 'nullishCoalescingOperator',
  33. 'numericSeparator',
  34. 'objectRestSpread',
  35. 'optionalCatchBinding',
  36. 'optionalChaining',
  37. ['pipelineOperator', { proposal: 'minimal' }],
  38. 'throwExpressions',
  39. 'typescript'
  40. ],
  41. };