Add prettier

This commit is contained in:
Aleksey Kladov 2019-12-30 15:08:38 +01:00
parent 29e86c0c72
commit a0c0350960
2 changed files with 19 additions and 6 deletions

View file

@ -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",

View file

@ -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",