From 080ba30398fa0e51b08d9de33aaf8186ce57867b Mon Sep 17 00:00:00 2001 From: pheralb Date: Mon, 23 Sep 2024 10:08:25 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9A=99=EF=B8=8F=20Upgrade=20prettier=20confi?= =?UTF-8?q?g=20to=20``.mjs``?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .prettierrc | 9 --------- prettier.config.cjs | 4 ---- prettier.config.mjs | 12 ++++++++++++ 3 files changed, 12 insertions(+), 13 deletions(-) delete mode 100644 .prettierrc delete mode 100644 prettier.config.cjs create mode 100644 prettier.config.mjs diff --git a/.prettierrc b/.prettierrc deleted file mode 100644 index 206e042..0000000 --- a/.prettierrc +++ /dev/null @@ -1,9 +0,0 @@ -{ - "useTabs": false, - "singleQuote": true, - "trailingComma": "none", - "printWidth": 100, - "plugins": ["prettier-plugin-svelte"], - "pluginSearchDirs": ["."], - "overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }] -} diff --git a/prettier.config.cjs b/prettier.config.cjs deleted file mode 100644 index eb095cf..0000000 --- a/prettier.config.cjs +++ /dev/null @@ -1,4 +0,0 @@ -/** @type {import("prettier").Config} */ -module.exports = { - plugins: [require.resolve('prettier-plugin-tailwindcss')] -}; diff --git a/prettier.config.mjs b/prettier.config.mjs new file mode 100644 index 0000000..22e72d3 --- /dev/null +++ b/prettier.config.mjs @@ -0,0 +1,12 @@ +/** @type {import("prettier").Config} */ +const config = { + useTabs: false, + singleQuote: true, + trailingComma: 'none', + printWidth: 100, + plugins: ['prettier-plugin-svelte', 'prettier-plugin-tailwindcss'], + pluginSearchDirs: ['.'], + overrides: [{ files: '*.svelte', options: { parser: 'svelte' } }] +}; + +export default config;