mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-06 05:09:09 +08:00
chore: migrate biome config from json to jsonc format
The new jsonc format allows for comments in the configuration file, making it more maintainable and easier to document configuration choices.
This commit is contained in:
parent
251fdc157d
commit
fcf0bf1fc0
69
biome.json
69
biome.json
@ -1,69 +0,0 @@
|
|||||||
{
|
|
||||||
"$schema": "https://biomejs.dev/schemas/2.2.4/schema.json",
|
|
||||||
"assist": {
|
|
||||||
"actions": { "source": { "organizeImports": "on", "useSortedKeys": "on" } },
|
|
||||||
"enabled": true,
|
|
||||||
"includes": ["**/*.json", "!*.json", "!**/package.json"]
|
|
||||||
},
|
|
||||||
"files": { "ignoreUnknown": false },
|
|
||||||
"formatter": {
|
|
||||||
"attributePosition": "auto",
|
|
||||||
"bracketSameLine": false,
|
|
||||||
"bracketSpacing": true,
|
|
||||||
"enabled": true,
|
|
||||||
"expand": "auto",
|
|
||||||
"formatWithErrors": true,
|
|
||||||
"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": "single",
|
|
||||||
"quoteProperties": "asNeeded",
|
|
||||||
"quoteStyle": "single",
|
|
||||||
"semicolons": "asNeeded",
|
|
||||||
"trailingCommas": "none"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"json": {
|
|
||||||
"parser": {
|
|
||||||
"allowComments": true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"linter": {
|
|
||||||
"enabled": true,
|
|
||||||
"rules": {
|
|
||||||
"nursery": {
|
|
||||||
"useSortedClasses": "error"
|
|
||||||
},
|
|
||||||
"recommended": false,
|
|
||||||
"suspicious": "off"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"vcs": { "clientKind": "git", "enabled": false, "useIgnoreFile": false }
|
|
||||||
}
|
|
||||||
71
biome.jsonc
Normal file
71
biome.jsonc
Normal file
@ -0,0 +1,71 @@
|
|||||||
|
{
|
||||||
|
"$schema": "https://biomejs.dev/schemas/2.2.4/schema.json",
|
||||||
|
"assist": {
|
||||||
|
// to sort json
|
||||||
|
"actions": { "source": { "organizeImports": "on", "useSortedKeys": "on" } },
|
||||||
|
"enabled": true,
|
||||||
|
"includes": ["**/*.json", "!*.json", "!**/package.json"]
|
||||||
|
},
|
||||||
|
"files": { "ignoreUnknown": false },
|
||||||
|
"formatter": {
|
||||||
|
"attributePosition": "auto",
|
||||||
|
"bracketSameLine": false,
|
||||||
|
"bracketSpacing": true,
|
||||||
|
"enabled": true,
|
||||||
|
"expand": "auto",
|
||||||
|
"formatWithErrors": true,
|
||||||
|
"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": "single",
|
||||||
|
"quoteProperties": "asNeeded",
|
||||||
|
"quoteStyle": "single",
|
||||||
|
"semicolons": "asNeeded",
|
||||||
|
"trailingCommas": "none"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"json": {
|
||||||
|
"parser": {
|
||||||
|
"allowComments": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"linter": {
|
||||||
|
"enabled": true,
|
||||||
|
"rules": {
|
||||||
|
"nursery": {
|
||||||
|
// to sort tailwind css classes
|
||||||
|
"useSortedClasses": "error"
|
||||||
|
},
|
||||||
|
"recommended": false,
|
||||||
|
"suspicious": "off"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"vcs": { "clientKind": "git", "enabled": false, "useIgnoreFile": false }
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user