From f6e0654bec11828cc6149c1e3db461eaa8d50e44 Mon Sep 17 00:00:00 2001 From: hamster1963 <1410514192@qq.com> Date: Fri, 13 Dec 2024 15:39:34 +0800 Subject: [PATCH] fix: prettier config --- .eslintrc.json | 5 +---- .prettierrc.js | 12 ------------ .prettierrc.json | 12 ++++++++++++ 3 files changed, 13 insertions(+), 16 deletions(-) delete mode 100644 .prettierrc.js create mode 100644 .prettierrc.json diff --git a/.eslintrc.json b/.eslintrc.json index 9e6b2cb..2884730 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,8 +1,5 @@ { - "extends": [ - "next/core-web-vitals", - "next/typescript" - ], + "extends": ["next/core-web-vitals", "next/typescript"], "rules": { "@typescript-eslint/no-explicit-any": "off", "@next/next/no-img-element": "off", diff --git a/.prettierrc.js b/.prettierrc.js deleted file mode 100644 index f3f8005..0000000 --- a/.prettierrc.js +++ /dev/null @@ -1,12 +0,0 @@ -export default { - semi: false, - singleQuote: false, - printWidth: 100, - tabWidth: 2, - trailingComma: "all", - importOrder: ["^@core/(.*)$", "^@server/(.*)$", "^@ui/(.*)$", "^[./]"], - importOrderSeparation: true, - importOrderSortSpecifiers: true, - endOfLine: "auto", - plugins: ["prettier-plugin-tailwindcss", "@trivago/prettier-plugin-sort-imports"], -} diff --git a/.prettierrc.json b/.prettierrc.json new file mode 100644 index 0000000..55490b2 --- /dev/null +++ b/.prettierrc.json @@ -0,0 +1,12 @@ +{ + "semi": false, + "singleQuote": false, + "printWidth": 100, + "tabWidth": 2, + "trailingComma": "all", + "importOrder": ["^@core/(.*)$", "^@server/(.*)$", "^@ui/(.*)$", "^[./]"], + "importOrderSeparation": true, + "importOrderSortSpecifiers": true, + "endOfLine": "auto", + "plugins": ["prettier-plugin-tailwindcss", "@trivago/prettier-plugin-sort-imports"] +}