first commit
This commit is contained in:
42
.prettierrc.json
Normal file
42
.prettierrc.json
Normal file
@@ -0,0 +1,42 @@
|
||||
{
|
||||
"tabWidth": 2,
|
||||
"singleQuote": true,
|
||||
"trailingComma": "all",
|
||||
"printWidth": 96,
|
||||
"semi": false,
|
||||
"plugins": [
|
||||
"prettier-plugin-astro",
|
||||
"@ianvs/prettier-plugin-sort-imports",
|
||||
"prettier-plugin-packagejson"
|
||||
],
|
||||
"overrides": [
|
||||
{ "files": "*.astro", "options": { "parser": "astro" } },
|
||||
{
|
||||
"files": ["*.json", "*.jsonc", "*.md", "*.yaml", "*.yml"],
|
||||
"options": { "printWidth": 80 }
|
||||
},
|
||||
{
|
||||
"files": [".zed/settings.json", "tsconfig.json"],
|
||||
"options": { "parser": "jsonc" }
|
||||
},
|
||||
{ "files": ["*.css"], "options": { "singleQuote": false } }
|
||||
],
|
||||
"importOrder": [
|
||||
"<BUILTIN_MODULES>",
|
||||
"",
|
||||
"^(react|react-dom)(/.*)?$",
|
||||
"^astro(/.*)?$",
|
||||
"",
|
||||
"^(@keystatic/.*)(/.*)?$",
|
||||
"",
|
||||
"<THIRD_PARTY_MODULES>",
|
||||
"",
|
||||
"^@/(?!.*\\.css$).*$",
|
||||
"",
|
||||
"^[.]{1,2}/(?!.*\\.css$).*$",
|
||||
"",
|
||||
"^.+\\.css$"
|
||||
],
|
||||
"importOrderParserPlugins": ["typescript", "jsx"],
|
||||
"importOrderTypeScriptVersion": "5.7.0"
|
||||
}
|
||||
Reference in New Issue
Block a user