diff --git a/editors/code/package-lock.json b/editors/code/package-lock.json index 982238fa47e..806ebdb8171 100644 --- a/editors/code/package-lock.json +++ b/editors/code/package-lock.json @@ -534,6 +534,12 @@ "integrity": "sha1-elfrVQpng/kRUzH89GY9XI4AelA=", "dev": true }, + "prettier": { + "version": "1.19.1", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-1.19.1.tgz", + "integrity": "sha512-s7PoyDv/II1ObgQunCbB9PdLmUcBZcnWOcxDh7O0N/UwDEsHyqkW+Qh28jW+mVuCdx7gLB0BotYI1Y6uI9iyew==", + "dev": true + }, "read": { "version": "1.0.7", "resolved": "https://registry.npmjs.org/read/-/read-1.0.7.tgz", diff --git a/editors/code/package.json b/editors/code/package.json index d14a36f8c4f..6662747f65b 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -18,7 +18,8 @@ "scripts": { "vscode:prepublish": "rollup -c", "package": "vsce package", - "watch": "tsc -watch -p ./" + "watch": "tsc -watch -p ./", + "prettier": "prettier --write **/*.ts" }, "dependencies": { "jsonc-parser": "^2.1.0", @@ -26,16 +27,22 @@ "vscode-languageclient": "^6.0.0-next.9" }, "devDependencies": { - "rollup": "^1.27.14", "@rollup/plugin-commonjs": "^11.0.0", "@rollup/plugin-node-resolve": "^6.0.0", "@rollup/plugin-typescript": "^2.0.1", - "typescript": "^3.7.3", - "tslib": "^1.10.0", - "vsce": "^1.71.0", "@types/node": "^12.12.21", "@types/seedrandom": "^2.4.28", - "@types/vscode": "^1.41.0" + "@types/vscode": "^1.41.0", + "prettier": "^1.19.1", + "rollup": "^1.27.14", + "tslib": "^1.10.0", + "typescript": "^3.7.3", + "vsce": "^1.71.0" + }, + "prettier": { + "singleQuote": true, + "tabWidth": 4, + "trailingComma": "all" }, "activationEvents": [ "onLanguage:rust",