pref: make prettier to flat config.

This commit is contained in:
Rintim 2024-04-17 14:36:01 +08:00
parent c82ad68d32
commit 68e8fc8989
No known key found for this signature in database
GPG Key ID: BE9E1EA615BACFCF
2 changed files with 13 additions and 12 deletions

View File

@ -1,12 +0,0 @@
{
"arrowParens": "always",
"bracketSpacing": true,
"endOfLine": "lf",
"printWidth": 110,
"proseWrap": "preserve",
"quoteProps": "as-needed",
"semi": true,
"tabWidth": 4,
"trailingComma": "es5",
"useTabs": true
}

13
prettier.config.mjs Normal file
View File

@ -0,0 +1,13 @@
/** @type {import("prettier").Config} */
export default {
arrowParens: "always",
bracketSpacing: true,
endOfLine: "lf",
printWidth: 110,
proseWrap: "preserve",
quoteProps: "as-needed",
semi: true,
tabWidth: 4,
trailingComma: "es5",
useTabs: true,
};