From a0c035096053529944dbb49c148371a8ad9b3fc0 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 30 Dec 2019 15:08:38 +0100 Subject: Add prettier --- editors/code/package-lock.json | 6 ++++++ editors/code/package.json | 19 +++++++++++++------ 2 files changed, 19 insertions(+), 6 deletions(-) diff --git a/editors/code/package-lock.json b/editors/code/package-lock.json index 982238fa4..806ebdb81 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 d14a36f8c..6662747f6 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", -- cgit v1.2.3