add prettier config + vscode formatter
This commit is contained in:
7
.prettierrc
Normal file
7
.prettierrc
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"semi": true,
|
||||
"tabWidth": 2,
|
||||
"printWidth": 120,
|
||||
"singleQuote": false,
|
||||
"trailingComma": "es5"
|
||||
}
|
||||
3
.vscode/extensions.json
vendored
Normal file
3
.vscode/extensions.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"recommendations": ["eg2.tslint", "EditorConfig.EditorConfig", "esbenp.prettier-vscode"]
|
||||
}
|
||||
1
.vscode/settings.json
vendored
1
.vscode/settings.json
vendored
@@ -1,5 +1,6 @@
|
||||
{
|
||||
"editor.renderWhitespace": "boundary",
|
||||
"editor.formatOnSave": true,
|
||||
"files.encoding": "utf8",
|
||||
"files.trimTrailingWhitespace": true,
|
||||
"files.insertFinalNewline": true,
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
"devDependencies": {
|
||||
"@types/lodash": "^3.10.1",
|
||||
"@types/screeps": "^2.4.0",
|
||||
"prettier": "^1.14.0",
|
||||
"rollup": "^0.57.1",
|
||||
"rollup-plugin-clear": "^2.0.7",
|
||||
"rollup-plugin-commonjs": "^9.1.4",
|
||||
@@ -35,6 +36,8 @@
|
||||
"rollup-plugin-screeps": "^0.1.2",
|
||||
"rollup-plugin-typescript2": "^0.16.1",
|
||||
"tslint": "^5.9.1",
|
||||
"tslint-config-prettier": "^1.14.0",
|
||||
"tslint-plugin-prettier": "^1.3.0",
|
||||
"typescript": "^2.9.2"
|
||||
},
|
||||
"dependencies": {
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
{
|
||||
"rulesDirectory": "tslint-plugin-prettier",
|
||||
"extends" : [
|
||||
"tslint:recommended"
|
||||
"tslint:recommended",
|
||||
"tslint-config-prettier"
|
||||
],
|
||||
"rules": {
|
||||
"forin": false,
|
||||
|
||||
Reference in New Issue
Block a user