Skip to content

Commit

Permalink
feat(NODE-5016)!: compile ts with target es2020 (#3545)
Browse files Browse the repository at this point in the history
  • Loading branch information
nbbeeken authored Jan 31, 2023
1 parent 13c6072 commit def266a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2019
"ecmaVersion": 2020
},
"plugins": [
"simple-import-sort",
Expand Down
14 changes: 10 additions & 4 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@
"checkJs": false,
"strict": true,
"alwaysStrict": true,
"target": "ES2019",
"target": "ES2020",
"module": "commonJS",
"moduleResolution": "node",
"skipLibCheck": true,
"lib": ["es2020"],
"lib": [
"es2020"
],
// We don't make use of tslib helpers, all syntax used is supported by target engine
"importHelpers": false,
"noEmitHelpers": true,
Expand All @@ -25,7 +27,9 @@
// we include sources in the release
"inlineSources": false,
// Prevents web types from being suggested by vscode.
"types": ["node"],
"types": [
"node"
],
"forceConsistentCasingInFileNames": true,
"noImplicitOverride": true,
"noImplicitReturns": true,
Expand All @@ -36,5 +40,7 @@
"transpileOnly": true,
"compiler": "typescript-cached-transpile"
},
"include": ["src/**/*"]
"include": [
"src/**/*"
]
}

0 comments on commit def266a

Please sign in to comment.