⚙️ Upgrade prettier config to `.mjs`

This commit is contained in:
pheralb 2024-09-23 10:08:25 +01:00
parent 244744488f
commit 080ba30398
3 changed files with 12 additions and 13 deletions

View File

@ -1,9 +0,0 @@
{
"useTabs": false,
"singleQuote": true,
"trailingComma": "none",
"printWidth": 100,
"plugins": ["prettier-plugin-svelte"],
"pluginSearchDirs": ["."],
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }]
}

View File

@ -1,4 +0,0 @@
/** @type {import("prettier").Config} */
module.exports = {
plugins: [require.resolve('prettier-plugin-tailwindcss')]
};

12
prettier.config.mjs Normal file
View File

@ -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;