File tree 2 files changed +3
-13
lines changed
2 files changed +3
-13
lines changed Original file line number Diff line number Diff line change @@ -3,17 +3,7 @@ module.exports = {
3
3
4
4
extends : [ '@metamask/eslint-config' , '@metamask/eslint-config-nodejs' ] ,
5
5
6
- env : {
7
- // See parserOptions comment
8
- es2022 : true ,
9
- } ,
10
-
11
6
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' ,
17
7
sourceType : 'module' ,
18
8
} ,
19
9
Original file line number Diff line number Diff line change 3
3
"esModuleInterop" : true ,
4
4
"exactOptionalPropertyTypes" : true ,
5
5
"forceConsistentCasingInFileNames" : true ,
6
- "lib" : [" ES2022 " ],
7
- "module" : " ES2022 " ,
6
+ "lib" : [" ES2020 " ],
7
+ "module" : " NodeNext " ,
8
8
"moduleResolution" : " NodeNext" ,
9
9
"noEmit" : true ,
10
10
"noErrorTruncation" : true ,
11
11
"skipLibCheck" : true ,
12
12
"strict" : true ,
13
- "target" : " ES2022 "
13
+ "target" : " ES2017 "
14
14
},
15
15
"exclude" : [" ./dist/**/*" , " node_modules" ]
16
16
}
You can’t perform that action at this time.
0 commit comments