Skip to content

Commit

Permalink
settings: エディタ設定、Prettier設定(#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
h-yoshikawa44 committed Aug 17, 2024
1 parent 0303ef9 commit 0565251
Show file tree
Hide file tree
Showing 7 changed files with 916 additions and 3 deletions.
18 changes: 18 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
root = true

[*]
indent_style = space
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
indent_size = 2

[*.go]
indent_style = tab

[*.md]
trim_trailing_whitespace = false

[*.{java,kt,php,py,go,rs}]
indent_size = 4
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
# .vscode/*
# !.vscode/extensions.json
.idea
.DS_Store
*.suo
Expand Down
4 changes: 4 additions & 0 deletions .prettierrc.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/** @type {import("prettier").Config} */
export default {
singleQuote: true,
};
14 changes: 14 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
// See http://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp

// List of extensions which should be recommended for users of this workspace.
"recommendations": [
"editorconfig.editorconfig",
"naumovs.color-highlight",
"zignd.html-css-class-completion",
"esbenp.prettier-vscode"
],
// List of extensions recommended by VS Code that should not be recommended for users of this workspace.
"unwantedRecommendations": []
}
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"html-css-class-completion.enableEmmetSupport": true
}
Loading

0 comments on commit 0565251

Please sign in to comment.