Skip to content

Commit

Permalink
Add es2018 as valid target for jsconfig and tsconfig
Browse files Browse the repository at this point in the history
Fixes SchemaStore#403

TypeScript 2.7 now supports `"target": "es2018"`: microsoft/TypeScript#20385
  • Loading branch information
mjbvz committed Feb 9, 2018
1 parent 546a9a1 commit 0f98105
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/schemas/json/jsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,9 @@
"type": "boolean"
},
"target": {
"description": "Specifies which default library (lib.d.ts) to use. When down-level compiling, specifies the code being generated. Permitted values are 'es3', 'es5', 'es2015', 'es2016', 'es2017' or 'esnext'.",
"description": "Specifies which default library (lib.d.ts) to use. When down-level compiling, specifies the code being generated. Permitted values are 'es3', 'es5', 'es2015', 'es2016', 'es2017', 'es2018' or 'esnext'.",
"type": "string",
"pattern": "^([eE][sS]([356]|(201[567])|[nN][eE][xX][tT]))$",
"pattern": "^([eE][sS]([356]|(201[5678])|[nN][eE][xX][tT]))$",
"default": "es2015"
},
"watch": {
Expand Down
5 changes: 3 additions & 2 deletions src/schemas/json/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@
"type": "boolean"
},
"target": {
"description": "Specify ECMAScript target version. Permitted values are 'es3', 'es5', 'es6', 'es2015', 'es2016', 'es2017' or 'esnext'.",
"description": "Specify ECMAScript target version. Permitted values are 'es3', 'es5', 'es6', 'es2015', 'es2016', 'es2017', 'es2018' or 'esnext'.",
"type": "string",
"default": "es3",
"anyOf": [
Expand All @@ -240,10 +240,11 @@
"es2015",
"es2016",
"es2017",
"es2018",
"esnext"
]
}, {
"pattern": "^([eE][sS]([356]|(201[567])|[nN][eE][xX][tT]))$"
"pattern": "^([eE][sS]([356]|(201[5678])|[nN][eE][xX][tT]))$"
}
]
},
Expand Down

0 comments on commit 0f98105

Please sign in to comment.