fe41c42ec5
Replace Prettier with Biome for formatting JS/TS/JSX/CSS/JSON. The CI format check drops from ~23s to ~0.4s. - Unify config into a single root biome.json (formatter + linter); the former apps/readest-app/biome.json was linter-only - Mirror the old .prettierrc.json style: 100 line width, 2-space indent, LF, single quotes, trailing commas - Enable the CSS tailwindDirectives parser for @apply in globals.css - Convert // prettier-ignore comments to // biome-ignore format: - Root scripts and lint-staged now run biome; apps/readest-app lint runs `biome lint` (lint-only) so formatting stays a separate CI step - Drop prettier + prettier-plugin-tailwindcss dependencies Markdown/YAML are no longer format-checked (Biome does not format them) and Tailwind class sorting is no longer enforced. Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
33 lines
1.0 KiB
JSON
33 lines
1.0 KiB
JSON
{
|
|
"typescript.tsdk": "node_modules/typescript/lib",
|
|
"rust-analyzer.linkedProjects": [
|
|
"packages/tauri/Cargo.toml",
|
|
"apps/readest-app/src-tauri/Cargo.toml"
|
|
],
|
|
// "editor.formatOnSave": true, // uncomment to add format on save
|
|
"typescript.inlayHints.parameterNames.enabled": "all",
|
|
"typescript.inlayHints.variableTypes.enabled": true,
|
|
"typescript.inlayHints.propertyDeclarationTypes.enabled": true,
|
|
"typescript.inlayHints.functionLikeReturnTypes.enabled": true,
|
|
"typescript.inlayHints.enumMemberValues.enabled": true,
|
|
"javascript.validate.enable": false,
|
|
"javascript.format.enable": false,
|
|
"typescript.format.enable": false,
|
|
"editor.defaultFormatter": "biomejs.biome",
|
|
"editor.codeActionsOnSave": {
|
|
"source.fixAll.eslint": "explicit"
|
|
},
|
|
"[css]": {
|
|
"editor.defaultFormatter": "biomejs.biome"
|
|
},
|
|
"[typescript]": {
|
|
"editor.defaultFormatter": "biomejs.biome"
|
|
},
|
|
"[typescriptreact]": {
|
|
"editor.defaultFormatter": "biomejs.biome"
|
|
},
|
|
"[json]": {
|
|
"editor.defaultFormatter": "biomejs.biome"
|
|
}
|
|
}
|