UNPKG

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