Skip to content

Commit

Permalink
[Prettier] importのソートをするプラグインを導入 (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
toririm authored Sep 8, 2024
1 parent 8f8dbe8 commit cde4118
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 1 deletion.
30 changes: 29 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,31 @@
{
"plugins": ["prettier-plugin-tailwindcss"]
"plugins": [
"prettier-plugin-tailwindcss",
"@ianvs/prettier-plugin-sort-imports"
],
"importOrder": [
"<BUILTIN_MODULES>",
"",
"<THIRD_PARTY_MODULES>",
"",
"^[~]",
"",
"^[.]"
],
"overrides": [
{
"files": "**/*.test.ts",
"options": {
"importOrder": [
"^vitest",
"",
"<THIRD_PARTY_MODULES>",
"",
"^[~]",
"",
"^[.]"
]
}
}
]
}
Binary file modified bun.lockb
Binary file not shown.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"zod": "^3.23.8"
},
"devDependencies": {
"@ianvs/prettier-plugin-sort-imports": "^4.3.1",
"@remix-run/dev": "^2.11.0",
"@types/lodash": "^4.17.7",
"@types/react": "^18.2.20",
Expand Down

0 comments on commit cde4118

Please sign in to comment.