Skip to content

Commit 0388948

Browse files
authored
Merge pull request #175 from vim-jp/lint
add lint
2 parents cc7e4e3 + a1c9794 commit 0388948

20 files changed

+2364
-220
lines changed

.github/workflows/lint.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: lint
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
lint-2025:
9+
runs-on: ubuntu-latest
10+
defaults:
11+
run:
12+
working-directory: ./2025
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
- uses: pnpm/action-setup@v4
17+
with:
18+
run_install: false
19+
version: 10.4.0
20+
- run: pnpm install --frozen-lockfile
21+
- run: pnpm check
22+
- run: pnpm lint

2025/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,5 @@ pnpm-debug.log*
2222

2323
# jetbrains setting folder
2424
.idea/
25+
26+
.eslintcache

2025/.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@jsr:registry=https://npm.jsr.io

2025/astro.config.mjs

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
1+
import react from '@astrojs/react';
12
// @ts-check
23
import { defineConfig } from 'astro/config';
3-
import Macros from 'unplugin-macros/vite'
44

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

77
// https://astro.build/config
88
export default defineConfig({
9-
base: '/2025',
9+
base: '/2025',
1010

11-
experimental: {
12-
serializeConfig: true,
13-
},
11+
experimental: {
12+
serializeConfig: true,
13+
},
1414

15-
redirects: {
16-
'/': '/2025/ja',
17-
'/2025': '/2025/ja',
18-
},
15+
redirects: {
16+
'/': '/2025/ja',
17+
'/2025': '/2025/ja',
18+
},
1919

20-
vite:{
21-
optimizeDeps: {
22-
exclude: [
23-
'@resvg/resvg-js'
24-
]
25-
},
26-
plugins: [
27-
Macros()
28-
]
29-
},
20+
vite: {
21+
optimizeDeps: {
22+
exclude: [
23+
'@resvg/resvg-js',
24+
],
25+
},
26+
plugins: [
27+
Macros(),
28+
],
29+
},
3030

31-
integrations: [react()]
32-
});
31+
integrations: [react()],
32+
});

2025/eslint.config.mjs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { ryoppippi } from '@ryoppippi/eslint-config';
2+
3+
export default ryoppippi({
4+
type: 'app', // or 'lib'
5+
svelte: false,
6+
astro: true,
7+
typescript: {
8+
tsconfigPath: './tsconfig.json',
9+
},
10+
});

2025/package.json

Lines changed: 46 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,48 @@
11
{
2-
"name": "2025",
3-
"private": true,
4-
"type": "module",
5-
"version": "0.0.1",
6-
"scripts": {
7-
"dev": "astro dev",
8-
"build": "astro build",
9-
"preview": "astro preview",
10-
"astro": "astro"
11-
},
12-
"dependencies": {
13-
"@astrojs/react": "^4.2.0",
14-
"@types/react": "^19.0.8",
15-
"@types/react-dom": "^19.0.3",
16-
"astro": "^5.3.0",
17-
"astro-google-fonts-optimizer": "^0.2.2",
18-
"astro-seo": "^0.8.4",
19-
"react": "^19.0.0",
20-
"react-dom": "^19.0.0",
21-
"satori": "^0.12.1",
22-
"ufo": "^1.5.4"
23-
},
24-
"devDependencies": {
25-
"@astrojs/ts-plugin": "^1.10.4",
26-
"sharp": "^0.33.5",
27-
"typescript": "^5.7.3",
28-
"unplugin-macros": "^0.16.0"
29-
},
30-
"pnpm": {
31-
"executionEnv": {
32-
"nodeVersion": "22.13.1"
33-
},
34-
"onlyBuiltDependencies": [
35-
"esbuild",
36-
"sharp"
37-
]
38-
},
39-
"packageManager": "[email protected]"
2+
"name": "2025",
3+
"type": "module",
4+
"version": "0.0.1",
5+
"private": true,
6+
"packageManager": "[email protected]",
7+
"scripts": {
8+
"dev": "astro dev",
9+
"build": "astro build",
10+
"preview": "astro preview",
11+
"astro": "astro",
12+
"check": "astro check",
13+
"lint": "eslint --cache .",
14+
"format": "nr lint --fix"
15+
},
16+
"dependencies": {
17+
"@astrojs/react": "^4.2.0",
18+
"@types/react": "^19.0.8",
19+
"@types/react-dom": "^19.0.3",
20+
"astro": "^5.3.0",
21+
"astro-google-fonts-optimizer": "^0.2.2",
22+
"astro-seo": "^0.8.4",
23+
"react": "^19.0.0",
24+
"react-dom": "^19.0.0",
25+
"satori": "^0.12.1",
26+
"ufo": "^1.5.4"
27+
},
28+
"devDependencies": {
29+
"@antfu/ni": "^23.3.1",
30+
"@astrojs/ts-plugin": "^1.10.4",
31+
"@ryoppippi/eslint-config": "npm:@jsr/ryoppippi__eslint-config@^0.0.25",
32+
"eslint": "^9.20.1",
33+
"eslint-plugin-astro": "^1.3.1",
34+
"eslint-plugin-format": "^1.0.1",
35+
"sharp": "^0.33.5",
36+
"typescript": "^5.7.3",
37+
"unplugin-macros": "^0.16.0"
38+
},
39+
"pnpm": {
40+
"executionEnv": {
41+
"nodeVersion": "22.13.1"
42+
},
43+
"onlyBuiltDependencies": [
44+
"esbuild",
45+
"sharp"
46+
]
47+
}
4048
}

0 commit comments

Comments
 (0)