Skip to content

Commit 8862c60

Browse files
committed
Upgrade packages, astro github action
1 parent 9ef246b commit 8862c60

4 files changed

Lines changed: 471 additions & 455 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ jobs:
2121
- name: Checkout your repository using git
2222
uses: actions/checkout@v4
2323
- name: Install, build, and upload your site
24-
uses: withastro/action@v2
24+
uses: withastro/action@v4
2525
# with:
26-
# package-manager: pnpm
27-
# node-version: 18
28-
# path: . # The root location of your Astro project inside the repository. (optional)
26+
# package-manager: pnpm@latest
27+
# node-version: 22
28+
# path: . # The root location of your Astro project inside the repository. (optional)
2929

3030
deploy:
3131
needs: build

eslint.config.mjs

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
1-
import { defineConfig } from "eslint/config";
2-
import globals from "globals";
3-
import js from "@eslint/js";
4-
import tseslint from "typescript-eslint";
5-
import astro from "eslint-plugin-astro";
6-
import prettier from "eslint-plugin-prettier";
7-
import * as mdx from "eslint-plugin-mdx";
1+
import { defineConfig } from 'eslint/config'
2+
import globals from 'globals'
3+
import js from '@eslint/js'
4+
import tseslint from 'typescript-eslint'
5+
import astro from 'eslint-plugin-astro'
6+
import prettier from 'eslint-plugin-prettier'
7+
// import * as mdx from 'eslint-plugin-mdx'
88
// import markdown from "@eslint/markdown";
9-
import unocss from "@unocss/eslint-config/flat";
9+
import unocss from '@unocss/eslint-config/flat'
1010

1111
// parsers
12-
const tsParser = tseslint.parser;
13-
const astroParser = astro.parser;
12+
const tsParser = tseslint.parser
13+
const astroParser = astro.parser
1414

1515
export default defineConfig([
1616
// Global configuration
1717
{
1818
languageOptions: {
1919
globals: {
2020
...globals.browser,
21-
...globals.node,
22-
},
23-
},
21+
...globals.node
22+
}
23+
}
2424
},
2525

2626
// Base configs
@@ -30,33 +30,33 @@ export default defineConfig([
3030
// Prettier config
3131
{
3232
plugins: {
33-
prettier: prettier,
33+
prettier: prettier
3434
},
3535
rules: {
3636
// disable warnings, since prettier should format on save
37-
"prettier/prettier": "off",
38-
},
37+
'prettier/prettier': 'off'
38+
}
3939
},
4040

4141
// astro setup with a11y
4242
astro.configs.recommended,
43-
astro.configs["jsx-a11y-recommended"],
43+
astro.configs['jsx-a11y-recommended'],
4444
{
45-
files: ["**/*.astro"],
45+
files: ['**/*.astro'],
4646
languageOptions: {
4747
parser: astroParser,
4848
parserOptions: {
4949
parser: tsParser,
50-
extraFileExtensions: [".astro"],
51-
sourceType: "module",
52-
ecmaVersion: "latest",
53-
project: "./tsconfig.json",
54-
},
50+
extraFileExtensions: ['.astro'],
51+
sourceType: 'module',
52+
ecmaVersion: 'latest',
53+
project: './tsconfig.json'
54+
}
5555
},
5656
rules: {
57-
"no-undef": "off", // Disable "not defined" errors for specific Astro types that are globally available (ImageMetadata)
58-
"@typescript-eslint/no-explicit-any": "off", // you may want this as it can get annoying
59-
},
57+
'no-undef': 'off', // Disable "not defined" errors for specific Astro types that are globally available (ImageMetadata)
58+
'@typescript-eslint/no-explicit-any': 'off' // you may want this as it can get annoying
59+
}
6060
},
6161
// {
6262
// files: ["**/*.md"],
@@ -72,10 +72,10 @@ export default defineConfig([
7272
// // "markdown/no-html": "error",
7373
// },
7474
// },
75-
{ ...mdx.flat },
75+
// { ...mdx.flat },
7676
unocss,
7777
// Ignore patterns
7878
{
79-
ignores: ["dist/**", "**/*.d.ts", ".github/"],
80-
},
81-
]);
79+
ignores: ['dist/**', '**/*.d.ts', '.github/']
80+
}
81+
])

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"dependencies": {
1717
"@astrojs/rss": "^4.0.12",
1818
"@astrojs/sitemap": "^3.5.1",
19-
"astro": "^5.13.3"
19+
"astro": "^5.13.5"
2020
},
2121
"devDependencies": {
2222
"@astrojs/check": "^0.9.4",
@@ -25,8 +25,8 @@
2525
"@iconify-json/logos": "^1.2.9",
2626
"@julr/unocss-preset-forms": "^2.0.0",
2727
"@types/node": "^24.3.0",
28-
"@typescript-eslint/parser": "^8.41.0",
29-
"@unocss/eslint-config": "^66.4.2",
28+
"@typescript-eslint/parser": "^8.42.0",
29+
"@unocss/eslint-config": "^66.5.0",
3030
"eslint": "^9.34.0",
3131
"eslint-plugin-astro": "^1.3.1",
3232
"eslint-plugin-jsx-a11y": "^6.10.2",
@@ -37,9 +37,9 @@
3737
"prettier-plugin-astro": "^0.14.1",
3838
"prettier-plugin-tailwindcss": "^0.6.14",
3939
"typescript": "^5.9.2",
40-
"typescript-eslint": "^8.41.0",
41-
"unocss": "^66.4.2",
42-
"vite": "^7.1.3"
40+
"typescript-eslint": "^8.42.0",
41+
"unocss": "^66.5.0",
42+
"vite": "^7.1.4"
4343
},
4444
"packageManager": "pnpm@10.15.0+sha512.486ebc259d3e999a4e8691ce03b5cac4a71cbeca39372a9b762cb500cfdf0873e2cb16abe3d951b1ee2cf012503f027b98b6584e4df22524e0c7450d9ec7aa7b"
4545
}

0 commit comments

Comments
 (0)