Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: lint

on:
push:
pull_request:

jobs:
lint-2025:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./2025
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
run_install: false
version: 10.4.0
- run: pnpm install --frozen-lockfile
- run: pnpm check
- run: pnpm lint
2 changes: 2 additions & 0 deletions 2025/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@ pnpm-debug.log*

# jetbrains setting folder
.idea/

.eslintcache
1 change: 1 addition & 0 deletions 2025/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@jsr:registry=https://npm.jsr.io
44 changes: 22 additions & 22 deletions 2025/astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
import react from '@astrojs/react';
// @ts-check
import { defineConfig } from 'astro/config';
import Macros from 'unplugin-macros/vite'

import react from '@astrojs/react';
import Macros from 'unplugin-macros/vite';

// https://astro.build/config
export default defineConfig({
base: '/2025',
base: '/2025',

experimental: {
serializeConfig: true,
},
experimental: {
serializeConfig: true,
},

redirects: {
'/': '/2025/ja',
'/2025': '/2025/ja',
},
redirects: {
'/': '/2025/ja',
'/2025': '/2025/ja',
},

vite:{
optimizeDeps: {
exclude: [
'@resvg/resvg-js'
]
},
plugins: [
Macros()
]
},
vite: {
optimizeDeps: {
exclude: [
'@resvg/resvg-js',
],
},
plugins: [
Macros(),
],
},

integrations: [react()]
});
integrations: [react()],
});
10 changes: 10 additions & 0 deletions 2025/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { ryoppippi } from '@ryoppippi/eslint-config';

export default ryoppippi({
type: 'app', // or 'lib'
svelte: false,
astro: true,
typescript: {
tsconfigPath: './tsconfig.json',
},
});
84 changes: 46 additions & 38 deletions 2025/package.json
Original file line number Diff line number Diff line change
@@ -1,40 +1,48 @@
{
"name": "2025",
"private": true,
"type": "module",
"version": "0.0.1",
"scripts": {
"dev": "astro dev",
"build": "astro build",
"preview": "astro preview",
"astro": "astro"
},
"dependencies": {
"@astrojs/react": "^4.2.0",
"@types/react": "^19.0.8",
"@types/react-dom": "^19.0.3",
"astro": "^5.3.0",
"astro-google-fonts-optimizer": "^0.2.2",
"astro-seo": "^0.8.4",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"satori": "^0.12.1",
"ufo": "^1.5.4"
},
"devDependencies": {
"@astrojs/ts-plugin": "^1.10.4",
"sharp": "^0.33.5",
"typescript": "^5.7.3",
"unplugin-macros": "^0.16.0"
},
"pnpm": {
"executionEnv": {
"nodeVersion": "22.13.1"
},
"onlyBuiltDependencies": [
"esbuild",
"sharp"
]
},
"packageManager": "[email protected]"
"name": "2025",
"type": "module",
"version": "0.0.1",
"private": true,
"packageManager": "[email protected]",
"scripts": {
"dev": "astro dev",
"build": "astro build",
"preview": "astro preview",
"astro": "astro",
"check": "astro check",
"lint": "eslint --cache .",
"format": "nr lint --fix"
},
"dependencies": {
"@astrojs/react": "^4.2.0",
"@types/react": "^19.0.8",
"@types/react-dom": "^19.0.3",
"astro": "^5.3.0",
"astro-google-fonts-optimizer": "^0.2.2",
"astro-seo": "^0.8.4",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"satori": "^0.12.1",
"ufo": "^1.5.4"
},
"devDependencies": {
"@antfu/ni": "^23.3.1",
"@astrojs/ts-plugin": "^1.10.4",
"@ryoppippi/eslint-config": "npm:@jsr/ryoppippi__eslint-config@^0.0.25",
"eslint": "^9.20.1",
"eslint-plugin-astro": "^1.3.1",
"eslint-plugin-format": "^1.0.1",
"sharp": "^0.33.5",
"typescript": "^5.7.3",
"unplugin-macros": "^0.16.0"
},
"pnpm": {
"executionEnv": {
"nodeVersion": "22.13.1"
},
"onlyBuiltDependencies": [
"esbuild",
"sharp"
]
}
}
Loading