Compare commits

..

2 Commits

Author SHA1 Message Date
22323f3b65 format(tree-wide): prettier
- Fixed inconsistent tab width and quotes

Signed-off-by: Noa Virellia <noa@requiem.garden>
2025-12-09 16:30:22 +08:00
0b538df7bb feat(prettier): support astro and mdx formatting
- Added prettier-plugin-astro as dev dependency
- Config prettier to explicitly use mdx parser when formatting mdx files

Signed-off-by: Noa Virellia <noa@requiem.garden>
2025-12-09 16:29:31 +08:00
5 changed files with 12 additions and 11 deletions

View File

@@ -1,6 +0,0 @@
.envrc
devenv.lock
devenv.yaml
devenv.nix
pnpm-lock.yaml
*.svg

View File

@@ -1,11 +1,19 @@
{ {
"plugins": ["prettier-plugin-astro"], "plugins": [
"prettier-plugin-astro"
],
"overrides": [ "overrides": [
{ {
"files": "*.astro", "files": "*.astro",
"options": { "options": {
"parser": "astro" "parser": "astro"
} }
},
{
"files": "*.mdx",
"options": {
"parser": "mdx"
}
} }
], ],
"printWidth": 120, "printWidth": 120,
@@ -20,6 +28,7 @@
"objectWrap": "preserve", "objectWrap": "preserve",
"bracketSameLine": false, "bracketSameLine": false,
"arrowParens": "always", "arrowParens": "always",
"parser": "typescript",
"proseWrap": "preserve", "proseWrap": "preserve",
"htmlWhitespaceSensitivity": "ignore", "htmlWhitespaceSensitivity": "ignore",
"vueIndentScriptAndStyle": false, "vueIndentScriptAndStyle": false,

View File

@@ -4,7 +4,6 @@ description: 'Nix CN Meetup #2 is the second Nix-themed meetup in China. We aim
sidebar: sidebar:
label: 'Meetup #2 Guide' label: 'Meetup #2 Guide'
--- ---
import { LinkButton } from '@astrojs/starlight/components'; import { LinkButton } from '@astrojs/starlight/components';
import { Aside } from '@astrojs/starlight/components'; import { Aside } from '@astrojs/starlight/components';

View File

@@ -4,7 +4,6 @@ description: 'Nix CN Meetup #2 是国内第二次以 Nix 为主题的聚会。
sidebar: sidebar:
label: 'Meetup #2 参会指南' label: 'Meetup #2 参会指南'
--- ---
import { LinkButton } from '@astrojs/starlight/components'; import { LinkButton } from '@astrojs/starlight/components';
Nix/NixOS CN Meetup #2 是国内第二次以 Nix 为主题的聚会。我们希望汇聚国内 NixOS 爱好者、开发者和实践者,共同分享 NixOS 的使用经验、最佳实践以及在不同场景下的应用案例。 Nix/NixOS CN Meetup #2 是国内第二次以 Nix 为主题的聚会。我们希望汇聚国内 NixOS 爱好者、开发者和实践者,共同分享 NixOS 的使用经验、最佳实践以及在不同场景下的应用案例。