Skip to content

Commit 86398ec

Browse files
committed
Revert ES version changes
1 parent 4124074 commit 86398ec

File tree

2 files changed

+3
-13
lines changed

2 files changed

+3
-13
lines changed

.eslintrc.cjs

-10
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,7 @@ module.exports = {
33

44
extends: ['@metamask/eslint-config', '@metamask/eslint-config-nodejs'],
55

6-
env: {
7-
// See parserOptions comment
8-
es2022: true,
9-
},
10-
116
parserOptions: {
12-
// We've had issues with the corresponding env setting being overriden.
13-
// As for the specific choice, at the time of writing most of our codebase
14-
// is on Node 16, and ES2022 is the latest version that's mostly compatible
15-
// with Node 16 per https://node.green/.
16-
ecmaVersion: '2022',
177
sourceType: 'module',
188
},
199

tsconfig.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
"esModuleInterop": true,
44
"exactOptionalPropertyTypes": true,
55
"forceConsistentCasingInFileNames": true,
6-
"lib": ["ES2022"],
7-
"module": "ES2022",
6+
"lib": ["ES2020"],
7+
"module": "NodeNext",
88
"moduleResolution": "NodeNext",
99
"noEmit": true,
1010
"noErrorTruncation": true,
1111
"skipLibCheck": true,
1212
"strict": true,
13-
"target": "ES2022"
13+
"target": "ES2017"
1414
},
1515
"exclude": ["./dist/**/*", "node_modules"]
1616
}

0 commit comments

Comments
 (0)