Skip to content

Commit 90cc861

Browse files
committed
fix(@jcoreio/toolchain): fix babel parse issue in migrateEslintEnvComments
1 parent 85fa1b5 commit 90cc861

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

packages/base/scripts/migrate/migrateEslintEnvComments.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const { gt } = require('semver')
22

33
async function migrateEslintEnvComments({ fromVersion }) {
44
// istanbul ignore next
5-
if (fromVersion && gt(fromVersion, '5.10.2')) {
5+
if (fromVersion && gt(fromVersion, '5.10.3')) {
66
return
77
}
88

packages/base/util/getBabelParseOpts.cjs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ const babelParseOpts = {
5353
},
5454
cjs: {
5555
sourceType: 'commonjs',
56-
allowReturnOutsideFunction: true,
5756
startLine: 1,
5857
},
5958
mjs: {
@@ -102,13 +101,11 @@ const babelParseOpts = {
102101
},
103102
cts: {
104103
sourceType: 'commonjs',
105-
allowReturnOutsideFunction: true,
106104
startLine: 1,
107105
plugins: [...commonPlugins, 'typescript', 'decorators-legacy'],
108106
},
109107
'd.cts': {
110108
sourceType: 'commonjs',
111-
allowReturnOutsideFunction: true,
112109
startLine: 1,
113110
plugins: [
114111
...commonPlugins,

0 commit comments

Comments
 (0)