Skip to content

Commit 25896a6

Browse files
authored
Update options for @babel/eslint-parser (#1191)
1 parent 0af4c72 commit 25896a6

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

test/integration/config.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,15 @@ module.exports = {
2020
babelrc: false,
2121
configFile: false,
2222
parserOpts: {
23+
allowAwaitOutsideFunction: true,
2324
plugins: [
2425
'jsx',
2526
'classProperties',
2627
'doExpressions',
27-
'exportDefaultFrom'
28+
'exportDefaultFrom',
29+
'classPrivateProperties',
30+
'classPrivateMethods',
31+
'importMeta'
2832
]
2933
}
3034
}

test/utils/test.mjs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ class Tester {
5050
['estree', {classFeatures: true}],
5151
'jsx',
5252
'classProperties',
53+
'exportDefaultFrom',
54+
'classPrivateProperties',
55+
'classPrivateMethods',
56+
'importMeta',
5357
...babelPlugins
5458
];
5559

@@ -65,8 +69,11 @@ class Tester {
6569
allowImportExportEverywhere: true,
6670
...testerOptions.parserOptions,
6771
babelOptions: {
72+
babelrc: false,
73+
configFile: false,
6874
...testerOptions.parserOptions.babelOptions,
6975
parserOpts: {
76+
allowAwaitOutsideFunction: true,
7077
...testerOptions.parserOptions.babelOptions.parserOpts,
7178
plugins: babelPlugins
7279
}

0 commit comments

Comments
 (0)