Skip to content

Commit def266a

Browse files
authored
feat(NODE-5016)!: compile ts with target es2020 (#3545)
1 parent 13c6072 commit def266a

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

.eslintrc.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"root": true,
33
"parser": "@typescript-eslint/parser",
44
"parserOptions": {
5-
"ecmaVersion": 2019
5+
"ecmaVersion": 2020
66
},
77
"plugins": [
88
"simple-import-sort",

tsconfig.json

+10-4
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@
44
"checkJs": false,
55
"strict": true,
66
"alwaysStrict": true,
7-
"target": "ES2019",
7+
"target": "ES2020",
88
"module": "commonJS",
99
"moduleResolution": "node",
1010
"skipLibCheck": true,
11-
"lib": ["es2020"],
11+
"lib": [
12+
"es2020"
13+
],
1214
// We don't make use of tslib helpers, all syntax used is supported by target engine
1315
"importHelpers": false,
1416
"noEmitHelpers": true,
@@ -25,7 +27,9 @@
2527
// we include sources in the release
2628
"inlineSources": false,
2729
// Prevents web types from being suggested by vscode.
28-
"types": ["node"],
30+
"types": [
31+
"node"
32+
],
2933
"forceConsistentCasingInFileNames": true,
3034
"noImplicitOverride": true,
3135
"noImplicitReturns": true,
@@ -36,5 +40,7 @@
3640
"transpileOnly": true,
3741
"compiler": "typescript-cached-transpile"
3842
},
39-
"include": ["src/**/*"]
43+
"include": [
44+
"src/**/*"
45+
]
4046
}

0 commit comments

Comments
 (0)