Skip to content

Commit ad7f0d9

Browse files
committed
Handle base, update packages and eslint
1 parent 1f53883 commit ad7f0d9

File tree

8 files changed

+1128
-416
lines changed

8 files changed

+1128
-416
lines changed

.eslintrc.cjs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
/** @type {import("eslint").Linter.Config} */
22
module.exports = {
3-
extends: ['plugin:astro/recommended'],
3+
extends: [
4+
'plugin:mdx/recommended',
5+
'plugin:markdown/recommended',
6+
'plugin:astro/recommended'
7+
],
48
parser: '@typescript-eslint/parser',
59
parserOptions: {
610
tsconfigRootDir: __dirname,

.github/FUNDING.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# These are supported funding model platforms
2+
3+
github: hellotham # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4+
patreon: # Replace with a single Patreon username
5+
open_collective: # Replace with a single Open Collective username
6+
ko_fi: # Replace with a single Ko-fi username
7+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9+
liberapay: # Replace with a single Liberapay username
10+
issuehunt: # Replace with a single IssueHunt username
11+
otechie: # Replace with a single Otechie username
12+
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
13+
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']

.github/workflows/deploy.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Github Pages Astro CI
2+
3+
on:
4+
# Trigger the workflow every time you push to the `main` branch
5+
# Using a different branch name? Replace `main` with your branch’s name
6+
push:
7+
branches: [main]
8+
# Allows you to run this workflow manually from the Actions tab on GitHub.
9+
workflow_dispatch:
10+
11+
# Allow this job to clone the repo and create a page deployment
12+
permissions:
13+
contents: read
14+
pages: write
15+
id-token: write
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout your repository using git
22+
uses: actions/checkout@v3
23+
- name: Install, build, and upload your site
24+
uses: withastro/action@v0
25+
with:
26+
package-manager: pnpm
27+
node-version: 18
28+
# path: . # The root location of your Astro project inside the repository. (optional)
29+
30+
deploy:
31+
needs: build
32+
runs-on: ubuntu-latest
33+
environment:
34+
name: github-pages
35+
url: ${{ steps.deployment.outputs.page_url }}
36+
steps:
37+
- name: Deploy to GitHub Pages
38+
id: deployment
39+
uses: actions/deploy-pages@v1

package.json

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,26 @@
1414
"dependencies": {
1515
"@astrojs/rss": "^2.4.3",
1616
"@astrojs/sitemap": "^1.3.3",
17-
"astro": "^2.5.7"
17+
"astro": "^2.6.3"
1818
},
1919
"devDependencies": {
20-
"@iconify-json/heroicons": "^1.1.10",
20+
"@iconify-json/heroicons": "^1.1.11",
2121
"@iconify-json/logos": "^1.1.31",
2222
"@julr/unocss-preset-forms": "^0.0.5",
23-
"@types/node": "^20.2.5",
24-
"@typescript-eslint/parser": "^5.59.8",
25-
"@unocss/reset": "^0.52.7",
23+
"@types/node": "^20.3.0",
24+
"@typescript-eslint/parser": "^5.59.9",
25+
"@unocss/reset": "^0.53.1",
2626
"eslint": "^8.42.0",
2727
"eslint-plugin-astro": "^0.27.1",
2828
"eslint-plugin-jsx-a11y": "^6.7.1",
29+
"eslint-plugin-markdown": "^3.0.0",
30+
"eslint-plugin-mdx": "^2.1.0",
2931
"prettier": "^2.8.8",
3032
"prettier-config-standard": "^5.0.0",
3133
"prettier-plugin-astro": "^0.10.0",
3234
"prettier-plugin-tailwindcss": "^0.3.0",
33-
"typescript": "^5.1.3",
34-
"unocss": "^0.52.7",
35+
"typescript": "^5.0.4",
36+
"unocss": "^0.53.1",
3537
"vite": "^4.3.9"
3638
}
3739
}

0 commit comments

Comments
 (0)