Skip to content

Commit

Permalink
Targeting ES2022 in tsconfig.json (#1976)
Browse files Browse the repository at this point in the history
* feat: add ES2022 to tsconfig.json

* test: targeting ES2022 in tsconfig-test.json

close #1975
  • Loading branch information
DevDengChao authored Dec 16, 2021
1 parent dcd41e4 commit df53fe2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/schemas/json/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -501,11 +501,12 @@
"ES2019",
"ES2020",
"ES2021",
"ES2022",
"ESNext"
]
},
{
"pattern": "^([Ee][Ss]([356]|(20(1[56789]|2[01]))|[Nn][Ee][Xx][Tt]))$"
"pattern": "^([Ee][Ss]([356]|(20(1[56789]|2[012]))|[Nn][Ee][Xx][Tt]))$"
}
],
"markdownDescription": "Set the JavaScript language version for emitted JavaScript and include compatible library declarations.\n\nSee more: https://www.typescriptlang.org/tsconfig#target"
Expand Down
3 changes: 2 additions & 1 deletion src/test/tsconfig/tsconfig-test.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"compilerOptions": {
"module": "CommonJS"
"target": "ES2022",
"module": "CommonJS"
}
}

0 comments on commit df53fe2

Please sign in to comment.