From 91c1e562edce196b63b1e26e60271330de2808e4 Mon Sep 17 00:00:00 2001 From: JJozef Date: Sat, 20 Apr 2024 22:16:38 -0400 Subject: [PATCH] style: update prettier configuration --- .prettierrc.json | 6 ------ prettier.config.cjs | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 6 deletions(-) delete mode 100644 .prettierrc.json create mode 100644 prettier.config.cjs diff --git a/.prettierrc.json b/.prettierrc.json deleted file mode 100644 index 81042fa..0000000 --- a/.prettierrc.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "semi": false, - "singleQuote": true, - "jsxSingleQuote": true, - "trailingComma": "none" -} \ No newline at end of file diff --git a/prettier.config.cjs b/prettier.config.cjs new file mode 100644 index 0000000..e3d3983 --- /dev/null +++ b/prettier.config.cjs @@ -0,0 +1,15 @@ +/** @type {import('prettier').Config} */ +module.exports = { + endOfLine: 'lf', + semi: false, + singleQuote: true, + jsxSingleQuote: true, + tabWidth: 2, + trailingComma: 'none', + importOrderSeparation: false, + importOrderSortSpecifiers: true, + importOrderBuiltinModulesToTop: true, + importOrderParserPlugins: ['javascript', 'jsx', 'decorators-legacy'], + importOrderMergeDuplicateImports: true, + importOrderCombineTypeAndValueImports: true +}