Skip to content

Commit 1770884

Browse files
committed
style: prettier code
1 parent dc53165 commit 1770884

File tree

4 files changed

+6100
-4328
lines changed

4 files changed

+6100
-4328
lines changed

.prettierrc.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,7 @@ const config = {
55
printWidth: 120,
66
singleQuote: false,
77
trailingComma: "all",
8-
/**
9-
* Note:
10-
* The order of plugins in this array is crucial for functionality.
11-
* Do not change the order, as this will prevent both plugins from working correctly.
12-
*/
13-
plugins: ["@trivago/prettier-plugin-sort-imports", "prettier-plugin-tailwindcss"],
14-
importOrder: ["^node:", "<THIRD_PARTY_MODULES>", "^[./]"],
15-
importOrderParserPlugins: ["typescript", "classProperties", "decorators-legacy"],
16-
importOrderSeparation: true,
17-
importOrderSortSpecifiers: true,
8+
plugins: ["prettier-plugin-tailwindcss"],
189
tailwindFunctions: ["cn"],
1910
};
2011

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
"react-dom": "^18.3.1"
2929
},
3030
"devDependencies": {
31-
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
3231
"@types/node": "18.11.10",
3332
"@types/react": "^18.3.12",
3433
"autoprefixer": "^10.4.20",

pages/_app.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import "../index.css";
22

3-
export default function MyApp({ Component, pageProps }) {
3+
export default function MyApp({ Component, pageProps }) {
44
return <Component {...pageProps} />;
55
}

0 commit comments

Comments
 (0)