Skip to content

Commit

Permalink
fix: upgrade, fix main menu (#19)
Browse files Browse the repository at this point in the history
* fix: upgrade, fix main menu

* reformat
  • Loading branch information
timozander authored Mar 10, 2024
1 parent 1b214ee commit e1babfc
Show file tree
Hide file tree
Showing 46 changed files with 2,418 additions and 2,898 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ module.exports = {
globals: {
JSX: true,
},
};
}
2 changes: 1 addition & 1 deletion .markdownlint.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"MD033": false,
"MD013": false
}
}
22 changes: 10 additions & 12 deletions astro.config.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { defineConfig } from "astro/config";
import remarkToc from "remark-toc";
import remarkCollapse from "remark-collapse";
import rehypeExternalLinks from "rehype-external-links";
import sitemap from "@astrojs/sitemap";
import UnoCSS from "unocss/astro";
import vue from "@astrojs/vue";
import mdx from "@astrojs/mdx";
import { defineConfig } from "astro/config"
import remarkToc from "remark-toc"
import remarkCollapse from "remark-collapse"
import rehypeExternalLinks from "rehype-external-links"
import sitemap from "@astrojs/sitemap"
import UnoCSS from "unocss/astro"
import vue from "@astrojs/vue"
import mdx from "@astrojs/mdx"

// https://astro.build/config
export default defineConfig({
Expand All @@ -15,13 +15,11 @@ export default defineConfig({
UnoCSS({
injectReset: true,
injectEntry: true,

}),
sitemap({
filter: page => !page.match(/\/blog\/\d+\//),
filter: (page) => !page.match(/\/blog\/\d+\//),
}),
vue(),

],
markdown: {
remarkPlugins: [
Expand All @@ -48,4 +46,4 @@ export default defineConfig({
},
extendDefaultPlugins: true,
},
});
})
19 changes: 19 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"$schema": "https://biomejs.dev/schemas/1.6.0/schema.json",
"organizeImports": {
"enabled": true
},
"linter": {
"enabled": false
},
"formatter": {
"enabled": true,
"indentStyle": "space"
},
"javascript": {
"formatter": {
"semicolons": "asNeeded",
"quoteStyle": "double"
}
}
}
71 changes: 34 additions & 37 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,58 +9,55 @@
"preview": "astro preview",
"sync": "astro sync",
"astro": "astro",
"format:check": "prettier --check .",
"format": "prettier --write .",
"format:check": "biome format .",
"format": "biome format --write .",
"cz": "cz",
"lint": "eslint ."
},
"dependencies": {
"@astrojs/mdx": "^2.0.3",
"@astrojs/rss": "^4.0.1",
"@astrojs/vue": "^4.0.6",
"@fontsource-variable/fira-code": "^5.0.8",
"@fontsource-variable/rubik": "^5.0.10",
"@fontsource/fira-code": "^5.0.8",
"@fontsource/rubik": "^5.0.11",
"astro": "^4.0.8",
"astro-seo-schema": "^3.0.0",
"fuse.js": "^6.6.2",
"rehype-external-links": "^2.1.0",
"@astrojs/mdx": "^2.1.1",
"@astrojs/rss": "^4.0.5",
"@astrojs/vue": "^4.0.8",
"@fontsource-variable/fira-code": "^5.0.17",
"@fontsource-variable/rubik": "^5.0.21",
"@fontsource/fira-code": "^5.0.17",
"@fontsource/rubik": "^5.0.19",
"astro": "^4.4.15",
"astro-seo-schema": "^4.0.0",
"fuse.js": "^7.0.0",
"rehype-external-links": "^3.0.0",
"remark-collapse": "^0.1.2",
"remark-toc": "^8.0.1",
"satori": "^0.10.3",
"vue": "^3.3.4"
"remark-toc": "^9.0.0",
"satori": "^0.10.13",
"vue": "^3.4.21"
},
"devDependencies": {
"@astrojs/sitemap": "^3.0.4",
"@babel/core": "^7.22.11",
"@iconify-json/ph": "^1.1.6",
"@typescript-eslint/parser": "^6.5.0",
"@unocss/preset-icons": "^0.55.3",
"@unocss/preset-typography": "^0.55.3",
"@unocss/reset": "^0.55.4",
"astro-eslint-parser": "^0.15.0",
"@astrojs/sitemap": "^3.1.1",
"@babel/core": "^7.24.0",
"@biomejs/biome": "^1.6.0",
"@iconify-json/ph": "^1.1.11",
"@typescript-eslint/parser": "^7.1.1",
"@unocss/preset-icons": "^0.58.5",
"@unocss/preset-typography": "^0.58.5",
"@unocss/reset": "^0.58.5",
"astro-eslint-parser": "^0.16.3",
"commitizen": "^4.3.0",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^8.48.0",
"eslint-plugin-astro": "^0.29.0",
"eslint-plugin-jsx-a11y": "^6.7.1",
"lint-staged": "^14.0.1",
"prettier": "^3.0.3",
"typescript": "^5.2.2",
"unocss": "^0.58.2",
"vite": "^4.4.9",
"volar-service-prettier": "^0.0.11",
"volar-service-prettyhtml": "^0.0.11"
"eslint": "^8.57.0",
"eslint-plugin-astro": "^0.31.4",
"eslint-plugin-jsx-a11y": "^6.8.0",
"lint-staged": "^15.2.2",
"typescript": "^5.4.2",
"unocss": "^0.58.5",
"vite": "^5.1.5",
"volar-service-prettyhtml": "^0.0.31"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
},
"lint-staged": {
"*": [
"prettier --write"
]
"*": ["biome format --write ."]
}
}
Loading

0 comments on commit e1babfc

Please sign in to comment.