Skip to content

Commit 191494b

Browse files
committed
chore(2025): add eslint
1 parent cc7e4e3 commit 191494b

File tree

5 files changed

+2174
-56
lines changed

5 files changed

+2174
-56
lines changed

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/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: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
"dev": "astro dev",
88
"build": "astro build",
99
"preview": "astro preview",
10-
"astro": "astro"
10+
"astro": "astro",
11+
"lint": "eslint --cache .",
12+
"format": "nr lint --fix"
1113
},
1214
"dependencies": {
1315
"@astrojs/react": "^4.2.0",
@@ -22,7 +24,12 @@
2224
"ufo": "^1.5.4"
2325
},
2426
"devDependencies": {
27+
"@antfu/ni": "^23.3.1",
2528
"@astrojs/ts-plugin": "^1.10.4",
29+
"@ryoppippi/eslint-config": "npm:@jsr/ryoppippi__eslint-config@^0.0.25",
30+
"eslint": "^9.20.1",
31+
"eslint-plugin-astro": "^1.3.1",
32+
"eslint-plugin-format": "^1.0.1",
2633
"sharp": "^0.33.5",
2734
"typescript": "^5.7.3",
2835
"unplugin-macros": "^0.16.0"

0 commit comments

Comments
 (0)