Skip to content

Commit

Permalink
chore: prettier 루트 설정 확장하도록 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
toothlessdev committed Sep 27, 2024
1 parent 086df40 commit 19f7bde
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 50 deletions.
36 changes: 0 additions & 36 deletions .prettierrc

This file was deleted.

36 changes: 36 additions & 0 deletions .prettierrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
module.exports = {
arrowParens: "always",
bracketSpacing: true,

jsxBracketSameLine: false,
jsxSingleQuote: false,
singleQuote: false,

quoteProps: "as-needed",

printWidth: 120,
tabWidth: 4,

plugins: ["@trivago/prettier-plugin-sort-imports"],
importOrder: [
"^react",
"<THIRD_PARTY_MODULES>",

"^(@/common)(.*)$",
"^(@/components)(.*)$",
"^(@/pages)(.*)$",

"^(@/hooks)(.*)$",
"^(@/services)(.*)$",

"^(@/assets)(.*)$",
"^(@/constants)(.*)$",
"^(@/config)(.*)$",
"^(@/utils)(.*)$",
"^(@/styles)(.*)$",

"^(.*)/(.*)$",
],
importOrderSeparation: true,
importOrderSortSpecifiers: false,
};
15 changes: 8 additions & 7 deletions packages/admin/.prettierrc → packages/admin/.prettierrc.cjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"plugins": ["@trivago/prettier-plugin-sort-imports"],
"importOrder": [
module.exports = {
...require("../../.prettierrc.cjs"),
plugins: ["@trivago/prettier-plugin-sort-imports"],
importOrder: [
"^react",
"<THIRD_PARTY_MODULES>",

Expand All @@ -17,8 +18,8 @@
"^(@/utils)(.*)$",
"^(@/styles)(.*)$",

"^(.*)/(.*)$"
"^(.*)/(.*)$",
],
"importOrderSeparation": true,
"importOrderSortSpecifiers": false
}
importOrderSeparation: true,
importOrderSortSpecifiers: false,
};
15 changes: 8 additions & 7 deletions packages/client/.prettierrc → packages/client/.prettierrc.cjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"plugins": ["@trivago/prettier-plugin-sort-imports"],
"importOrder": [
module.exports = {
...require("../../.prettierrc.cjs"),
plugins: ["@trivago/prettier-plugin-sort-imports"],
importOrder: [
"^react",
"<THIRD_PARTY_MODULES>",

Expand All @@ -17,8 +18,8 @@
"^(@/utils)(.*)$",
"^(@/styles)(.*)$",

"^(.*)/(.*)$"
"^(.*)/(.*)$",
],
"importOrderSeparation": true,
"importOrderSortSpecifiers": false
}
importOrderSeparation: true,
importOrderSortSpecifiers: false,
};

0 comments on commit 19f7bde

Please sign in to comment.