Add prettier

pull/2748/head
Alex Dima 2020-09-07 18:03:57 +02:00
parent 7509dfc100
commit 21ceb6a387
No known key found for this signature in database
GPG Key ID: 6E58D7B045760DA0
3 changed files with 14 additions and 1 deletions

2
.prettierignore 100644
View File

@ -0,0 +1,2 @@
/release/
/src/lib/

7
.prettierrc 100644
View File

@ -0,0 +1,7 @@
{
"arrowParens": "always",
"singleQuote": true,
"trailingComma": "none",
"semi": true,
"useTabs": true
}

View File

@ -8,7 +8,8 @@
"compile": "mrmdir ./release && npm run compile-amd && npm run compile-esm",
"watch": "tsc -p ./src --watch",
"prepublishOnly": "npm run compile && node ./scripts/bundle && mcopy ./src/monaco.d.ts ./release/monaco.d.ts",
"import-typescript": "node ./scripts/importTypescript"
"import-typescript": "node ./scripts/importTypescript",
"prettier": "prettier --write ."
},
"author": "Microsoft Corporation",
"license": "MIT",
@ -21,9 +22,12 @@
},
"devDependencies": {
"@typescript/vfs": "^1.3.0",
"husky": "^4.3.0",
"monaco-editor-core": "^0.20.0",
"monaco-languages": "^1.10.0",
"monaco-plugin-helpers": "^1.0.3",
"prettier": "^2.1.1",
"pretty-quick": "^3.0.0",
"requirejs": "^2.3.6",
"terser": "^5.3.0",
"typescript": "^4.0.2"