Skip to content

Commit f14cd92

Browse files
committed
chore: prettierの設定を追加
1 parent eedd0c7 commit f14cd92

File tree

2 files changed

+19
-20
lines changed

2 files changed

+19
-20
lines changed

2025/.prettierrc.mjs

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,21 @@
11
// .prettierrc.mjs
22
/** @type {import("prettier").Config} */
33
export default {
4-
plugins: ["prettier-plugin-astro", "prettier-plugin-tailwindcss"],
5-
tailwindStylesheet: "src/styles/global.css",
6-
tailwindConfig: "tailwind.config.ts",
7-
overrides: [
8-
{
9-
files: "*.astro",
10-
options: {
11-
parser: "astro",
12-
},
13-
},
14-
{
15-
files: "*.svelte",
16-
options: {
17-
parser: "svelte",
18-
},
19-
},
20-
],
4+
plugins: ['prettier-plugin-astro', 'prettier-plugin-tailwindcss'],
5+
tailwindStylesheet: 'src/styles/global.css',
6+
tailwindConfig: 'tailwind.config.ts',
7+
overrides: [
8+
{
9+
files: '*.astro',
10+
options: {
11+
parser: 'astro',
12+
},
13+
},
14+
{
15+
files: '*.svelte',
16+
options: {
17+
parser: 'svelte',
18+
},
19+
},
20+
],
2121
};
22-

2025/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
"check": "astro check",
1313
"lint": "eslint --cache .",
1414
"format": "nr lint --fix",
15-
"prettier:check": "prettier --cache --check --plugin-search-dir=. src",
16-
"prettier:fix": "prettier --cache --write --plugin-search-dir=. src"
15+
"prettier:check": "prettier --cache --check --plugin-search-dir=. src",
16+
"prettier:fix": "prettier --cache --write --plugin-search-dir=. src"
1717
},
1818
"dependencies": {
1919
"@astrojs/react": "^4.2.0",

0 commit comments

Comments
 (0)