Skip to content

Commit

Permalink
Update options for @babel/eslint-parser (#1191)
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker authored Apr 19, 2021
1 parent 0af4c72 commit 25896a6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/integration/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,15 @@ module.exports = {
babelrc: false,
configFile: false,
parserOpts: {
allowAwaitOutsideFunction: true,
plugins: [
'jsx',
'classProperties',
'doExpressions',
'exportDefaultFrom'
'exportDefaultFrom',
'classPrivateProperties',
'classPrivateMethods',
'importMeta'
]
}
}
Expand Down
7 changes: 7 additions & 0 deletions test/utils/test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ class Tester {
['estree', {classFeatures: true}],
'jsx',
'classProperties',
'exportDefaultFrom',
'classPrivateProperties',
'classPrivateMethods',
'importMeta',
...babelPlugins
];

Expand All @@ -65,8 +69,11 @@ class Tester {
allowImportExportEverywhere: true,
...testerOptions.parserOptions,
babelOptions: {
babelrc: false,
configFile: false,
...testerOptions.parserOptions.babelOptions,
parserOpts: {
allowAwaitOutsideFunction: true,
...testerOptions.parserOptions.babelOptions.parserOpts,
plugins: babelPlugins
}
Expand Down

0 comments on commit 25896a6

Please sign in to comment.