summaryrefslogtreecommitdiff
path: root/.prettierrc.json
diff options
context:
space:
mode:
authorAsai Neko <sugar@sne.moe>2025-12-08 00:06:01 +0800
committerAsai Neko <sugar@sne.moe>2025-12-08 00:06:01 +0800
commit6845bcb2088ffc06dbfdb5b3ddf3d39c13251a21 (patch)
treef72b75d3b31ceb504c6313d05ba7cdd3ed3e8c4b /.prettierrc.json
parent3e0696180503117ddae02a9a38672e6bb584a557 (diff)
Impl prettier to project
- Add prettier json config - Format project with prettier config - Enable prettier in zed project settings Signed-off-by: Asai Neko <sugar@sne.moe>
Diffstat (limited to '.prettierrc.json')
-rw-r--r--.prettierrc.json21
1 files changed, 21 insertions, 0 deletions
diff --git a/.prettierrc.json b/.prettierrc.json
new file mode 100644
index 0000000..1daf706
--- /dev/null
+++ b/.prettierrc.json
@@ -0,0 +1,21 @@
+{
+ "printWidth": 120,
+ "tabWidth": 4,
+ "useTabs": false,
+ "semi": true,
+ "singleQuote": true,
+ "quoteProps": "as-needed",
+ "jsxSingleQuote": true,
+ "trailingComma": "all",
+ "bracketSpacing": true,
+ "objectWarp": "preserve",
+ "bracketSameLine": false,
+ "arrowParens": "always",
+ "parser": "typescript",
+ "poseWrap": "preserve",
+ "htmlWhitespaceSensitivity": "ignore",
+ "vueIndentScriptAndStyle": false,
+ "endOfLine": "lf",
+ "embeddedLanguageFormatting": "auto",
+ "singleAttributePerLine": false
+}