From 025685881f3cc1bf8c58275f27e487bf6fb9b3af Mon Sep 17 00:00:00 2001 From: icarus Date: Mon, 15 Sep 2025 05:44:00 +0800 Subject: [PATCH] build: add biome.json configuration file for code formatting --- biome.json | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 biome.json diff --git a/biome.json b/biome.json new file mode 100644 index 0000000000..39520cce18 --- /dev/null +++ b/biome.json @@ -0,0 +1,54 @@ +{ + "$schema": "https://biomejs.dev/schemas/2.2.4/schema.json", + "assist": { + "actions": { "source": { "organizeImports": "on", "useSortedKeys": "on" } }, + "enabled": true + }, + "files": { "ignoreUnknown": false }, + "formatter": { + "attributePosition": "auto", + "bracketSameLine": false, + "bracketSpacing": true, + "enabled": true, + "expand": "auto", + "formatWithErrors": false, + "includes": [ + "**", + "!**/out/", + "!**/dist/", + "!**/build/", + "!**/.yarn/", + "!**/.github/", + "!**/.husky/", + "!**/.vscode/", + "!**/*.yaml", + "!**/*.yml", + "!**/*.mjs", + "!**/*.cjs", + "!**/*.md", + "!**/*.json", + "!src/main/integration/" + ], + "indentStyle": "space", + "indentWidth": 2, + "lineEnding": "lf", + "lineWidth": 120, + "useEditorconfig": true + }, + "html": { "formatter": { "selfCloseVoidElements": "always" } }, + "javascript": { + "formatter": { + "arrowParentheses": "always", + "attributePosition": "auto", + "bracketSameLine": false, + "bracketSpacing": true, + "jsxQuoteStyle": "double", + "quoteProperties": "asNeeded", + "quoteStyle": "single", + "semicolons": "asNeeded", + "trailingCommas": "none" + } + }, + "linter": { "enabled": false, "rules": { "recommended": true } }, + "vcs": { "clientKind": "git", "enabled": false, "useIgnoreFile": false } +}