Skip to content

Commit

Permalink
Add prettier package (ruby#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
ono-max authored Mar 22, 2023
1 parent 50eb063 commit cccd8f4
Show file tree
Hide file tree
Showing 6 changed files with 68 additions and 18 deletions.
17 changes: 0 additions & 17 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,22 +47,9 @@
}
}
],
"@typescript-eslint/semi": "warn",
"@typescript-eslint/type-annotation-spacing": "warn",
"no-unused-expressions": "error",
"no-throw-literal": "warn",
"semi": "off",
"indent": [
"warn",
"tab",
{
"SwitchCase": 1
}
],
"object-curly-spacing": [
"warn",
"always"
],
"no-unused-vars": [
"warn",
{
Expand All @@ -72,10 +59,6 @@
}
],
"eqeqeq": "warn",
"quotes": [
"warn",
"double"
],
"prefer-const": "warn"
}
}
6 changes: 6 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
out/
.vscode-test/
test-resources/
*.md
*.yml
*.yaml
7 changes: 7 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
printWidth: 120,
singleQuote: false,
trailingComma: "all",
endOfLine: "auto",
tabWidth: 4,
};
12 changes: 11 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,14 @@
"out": true
},
"typescript.tsc.autoDetect": "off",
}
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"editor.formatOnSave": true,
}
42 changes: 42 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -342,8 +342,10 @@
"@vscode/debugprotocol": "^1.59.0",
"@vscode/test-electron": "^2.3.0",
"eslint": "^8.36.0",
"eslint-config-prettier": "^8.8.0",
"glob": "^8.1.0",
"mocha": "^10.2.0",
"prettier": "^2.8.6",
"typescript": "^5.0.2",
"vscode-extension-tester": "^5.5.1"
}
Expand Down

0 comments on commit cccd8f4

Please sign in to comment.