1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- /**
- * Copyright (c) Facebook, Inc. and its affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */
- 'use strict';
- /**
- * Options shared by the TypeScript and TSX parsers.
- */
- module.exports = {
- sourceType: 'module',
- allowImportExportEverywhere: true,
- allowReturnOutsideFunction: true,
- startLine: 1,
- tokens: true,
- plugins: [
- 'asyncGenerators',
- 'bigInt',
- 'classPrivateMethods',
- 'classPrivateProperties',
- 'classProperties',
- 'decorators-legacy',
- 'doExpressions',
- 'dynamicImport',
- 'exportDefaultFrom',
- 'exportExtensions',
- 'exportNamespaceFrom',
- 'functionBind',
- 'functionSent',
- 'importMeta',
- 'nullishCoalescingOperator',
- 'numericSeparator',
- 'objectRestSpread',
- 'optionalCatchBinding',
- 'optionalChaining',
- ['pipelineOperator', { proposal: 'minimal' }],
- 'throwExpressions',
- 'typescript'
- ],
- };
|