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;