Skip to content

Commit

Permalink
switch to es2020 and other small fixes (#147)
Browse files Browse the repository at this point in the history
  • Loading branch information
aeschli committed Nov 25, 2022
1 parent 1232b47 commit 2b38e12
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -39,7 +39,7 @@
"watch": "tsc -w -p ./src && npm run copy-jsbeautify",
"clean": "rimraf lib",
"remove-sourcemap-refs": "node ./build/remove-sourcemap-refs.js",
"test": "npm run compile && mocha ./lib/umd/test/*.js && npm run lint",
"test": "npm run compile && mocha --timeout 5000 ./lib/umd/test/*.js && npm run lint",
"lint": "eslint src/**/*.ts",
"install-types-next": "yarn add vscode-languageserver-types@next -f -S && yarn add vscode-languageserver-textdocument@next -f -S",
"copy-jsbeautify": "node ./build/copy-jsbeautify.js",
Expand Down
2 changes: 1 addition & 1 deletion src/services/htmlCompletion.ts
Expand Up @@ -368,7 +368,7 @@ export class HTMLCompletion {
result.items.push({
label,
kind: CompletionItemKind.Keyword,
documentation: l10n.t(`Character entity representing '${entities[entity]}'`),
documentation: l10n.t('Character entity representing \'{0}\'', entities[entity]),
textEdit: TextEdit.replace(range, label),
insertTextFormat: InsertTextFormat.PlainText
});
Expand Down
4 changes: 2 additions & 2 deletions src/tsconfig.esm.json
@@ -1,14 +1,14 @@
{
"compilerOptions": {
"target": "es5",
"target": "es2020",
"module": "es6",
"moduleResolution": "node",
"sourceMap": true,
"declaration": true,
"stripInternal": true,
"outDir": "../lib/esm",
"lib": [
"es5", "es2015.promise"
"es2020"
],
"strict": true
}
Expand Down
4 changes: 2 additions & 2 deletions src/tsconfig.json
@@ -1,14 +1,14 @@
{
"compilerOptions": {
"target": "es5",
"target": "es2020",
"module": "umd",
"moduleResolution": "node",
"sourceMap": true,
"declaration": true,
"stripInternal": true,
"outDir": "../lib/umd",
"lib": [
"es5", "es2015.promise"
"es2020"
],
"strict": true
}
Expand Down

0 comments on commit 2b38e12

Please sign in to comment.