Skip to content

Commit

Permalink
🔧 コードフォーマットの設定ファイルを追加
Browse files Browse the repository at this point in the history
  • Loading branch information
tatsutakein committed Nov 27, 2023
1 parent 3b387ec commit c587f71
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 8 deletions.
11 changes: 4 additions & 7 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
; https://editorconfig.org

root = true

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

[*.md]
indent_size = 2
trim_trailing_whitespace = false

[*.{cjs,mjs,js,json,yml,yaml}]
indent_size = 2
22 changes: 22 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"plugins": [
"prettier-plugin-astro"
],
"arrowParens": "always",
"printWidth": 80,
"singleQuote": true,
"jsxSingleQuote": true,
"semi": true,
"trailingComma": "all",
"tabWidth": 2,
"overrides": [
{
"files": [
"*.astro"
],
"options": {
"parser": "astro"
}
}
]
}
10 changes: 9 additions & 1 deletion astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
import react from "@astrojs/react";
import sitemap from "@astrojs/sitemap";
import { defineConfig } from 'astro/config';

// https://astro.build/config
export default defineConfig({});
export default defineConfig({

integrations: [
react(),
sitemap(),
]
});

0 comments on commit c587f71

Please sign in to comment.