Skip to content

Commit

Permalink
fix: upgrade Typescript target
Browse files Browse the repository at this point in the history
From es2017 to es2018.

Noticed that regex capture groups are not fully supported in es2017.

TS(1503) static analysis warning.
  • Loading branch information
gitphill committed Nov 13, 2024
1 parent a6e254d commit ccb3e22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"compilerOptions": {
"pretty": true,
/* Basic Options */
"target": "es2017", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */
"lib": ["es2017", "dom"],
"target": "es2018", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */
"lib": ["es2018", "dom"],
"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
// "allowJs": true, /* Allow javascript files to be compiled. */
// "checkJs": true, /* Report errors in .js files. */
Expand Down

0 comments on commit ccb3e22

Please sign in to comment.