Skip to content

Commit 1801737

Browse files
committed
fix ecmaVersion
1 parent 7064770 commit 1801737

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module.exports = {
99
es2017: true,
1010
},
1111
parserOptions: {
12-
ecmaVersion: 2018,
12+
ecmaVersion: 2020,
1313
},
1414
extends: ['@sentry-internal/sdk'],
1515
ignorePatterns: [

packages/eslint-config-sdk/src/base.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ module.exports = {
1111
rules: {
1212
'no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
1313
},
14+
parserOptions: {
15+
sourceType: 'module',
16+
ecmaVersion: 2020,
17+
},
1418
},
1519
{
1620
// Configuration for typescript files
@@ -185,7 +189,7 @@ module.exports = {
185189
files: ['*.config.js', '*.config.mjs'],
186190
parserOptions: {
187191
sourceType: 'module',
188-
ecmaVersion: 2018,
192+
ecmaVersion: 2020,
189193
},
190194
},
191195
{

0 commit comments

Comments
 (0)