mirror of
https://github.com/pheralb/svgl.git
synced 2024-12-04 21:32:37 +08:00
⚙️ Upgrade prettier config to `.mjs
`
This commit is contained in:
parent
244744488f
commit
080ba30398
@ -1,9 +0,0 @@
|
||||
{
|
||||
"useTabs": false,
|
||||
"singleQuote": true,
|
||||
"trailingComma": "none",
|
||||
"printWidth": 100,
|
||||
"plugins": ["prettier-plugin-svelte"],
|
||||
"pluginSearchDirs": ["."],
|
||||
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }]
|
||||
}
|
@ -1,4 +0,0 @@
|
||||
/** @type {import("prettier").Config} */
|
||||
module.exports = {
|
||||
plugins: [require.resolve('prettier-plugin-tailwindcss')]
|
||||
};
|
12
prettier.config.mjs
Normal file
12
prettier.config.mjs
Normal 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;
|
Loading…
Reference in New Issue
Block a user