Compare commits

..

3 Commits

Author SHA1 Message Date
e2fe451500 feat(prettier): add .prettierignore
- Excluded some yaml and lock files we don't want prettier to touch

Signed-off-by: Noa Virellia <noa@requiem.garden>
2025-12-09 16:36:41 +08:00
5f38953330 format(tree-wide): prettier
- Fixed inconsistent tab width and quotes

Signed-off-by: Noa Virellia <noa@requiem.garden>
2025-12-09 16:36:41 +08:00
8bcc73bab5 feat(prettier): support astro and fix mdx formatting
- Added prettier-plugin-astro as dev dependency
- Removed incorrect top-level "typescript" parser config
    - This causes the MDX files be parsed as typescript and error out.

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

6
.prettierignore Normal file
View File

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

View File

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

View File

@@ -20,4 +20,4 @@
"prettier-plugin-astro": "^0.14.1"
},
"packageManager": "pnpm@10.25.0+sha512.5e82639027af37cf832061bcc6d639c219634488e0f2baebe785028a793de7b525ffcd3f7ff574f5e9860654e098fe852ba8ac5dd5cefe1767d23a020a92f501"
}
}

View File

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

View File

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