From 68ad953071306adb31daea94309d10a6c5e8cc9f Mon Sep 17 00:00:00 2001 From: Dmitriy Bratchikov Date: Mon, 27 May 2024 16:57:32 +0700 Subject: [PATCH] fix: .prettierrc to json --- .prettierrc.cjs | 29 ----------------------------- .prettierrc.json | 27 +++++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 29 deletions(-) delete mode 100644 .prettierrc.cjs create mode 100644 .prettierrc.json diff --git a/.prettierrc.cjs b/.prettierrc.cjs deleted file mode 100644 index a52cc36..0000000 --- a/.prettierrc.cjs +++ /dev/null @@ -1,29 +0,0 @@ -// @ts-check - -module.exports = { - // Standard prettier options - trailingComma: "all", - tabWidth: 2, - useTabs: true, - singleQuote: false, - jsxSingleQuote: false, - semi: false, - - plugins: ["@ianvs/prettier-plugin-sort-imports"], - - importOrder: [ - "", - "", - "react", - "", - "", - "", - "^(@shared|@entities|@features|@widgets|@pagesLayer|@app)(/.*)$", - "", - "^(?!.*[.]scss$)[./].*$", - ".scss$", - "^[.]", - ], - importOrderParserPlugins: ["typescript", "jsx", "decorators-legacy"], - importOrderTypeScriptVersion: "5.0.0", -} diff --git a/.prettierrc.json b/.prettierrc.json new file mode 100644 index 0000000..291ff4d --- /dev/null +++ b/.prettierrc.json @@ -0,0 +1,27 @@ + +{ + "trailingComma": "all", + "tabWidth": 2, + "useTabs": true, + "singleQuote": false, + "jsxSingleQuote": false, + "semi": false, + + "plugins": ["@ianvs/prettier-plugin-sort-imports"], + + "importOrder": [ + "", + "", + "react", + "", + "", + "", + "^(@shared|@entities|@features|@widgets|@pagesLayer|@app)(/.*)$", + "", + "^(?!.*[.]scss$)[./].*$", + ".scss$", + "^[.]" + ], + "importOrderParserPlugins": ["typescript", "jsx", "decorators-legacy"], + "importOrderTypeScriptVersion": "5.0.0" +}