Skip to content

Commit 43e7c36

Browse files
committed
Replace ESLint with Biome
1 parent f6d03c2 commit 43e7c36

File tree

13 files changed

+1094
-1158
lines changed

13 files changed

+1094
-1158
lines changed

packages/swr-openapi/.prettierignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

packages/swr-openapi/.prettierrc

Whitespace-only changes.

packages/swr-openapi/biome.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/1.9.2/schema.json",
3+
"extends": ["../../biome.json"],
4+
"files": {
5+
"include": ["./src/"]
6+
},
7+
"linter": {
8+
"rules": {
9+
"style": {
10+
"noNonNullAssertion": "off"
11+
}
12+
}
13+
}
14+
}

packages/swr-openapi/package.json

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,8 @@
4646
"build:clean": "del dist",
4747
"build:esm": "tsc -p tsconfig.build.json",
4848
"dev": "vitest --typecheck",
49-
"format": "prettier --write .",
50-
"lint": "pnpm run lint:format && pnpm run lint:js",
51-
"lint:format": "prettier --check .",
52-
"lint:js": "eslint './src/**/*'",
49+
"format": "biome format . --write",
50+
"lint": "biome check .",
5351
"test": "pnpm run --sequential \"/^test:/\"",
5452
"test:js": "vitest run --typecheck",
5553
"test:ts": "tsc --noEmit",
@@ -75,25 +73,17 @@
7573
},
7674
"devDependencies": {
7775
"@arethetypeswrong/cli": "0.16.2",
78-
"@eslint/js": "9.10.0",
79-
"@types/eslint__js": "8.42.3",
80-
"@types/eslint-config-prettier": "6.11.3",
8176
"@types/lodash": "4.17.7",
8277
"@types/react": "18.3.5",
83-
"@vitest/eslint-plugin": "1.1.0",
8478
"del-cli": "5.1.0",
85-
"eslint": "9.10.0",
86-
"eslint-config-prettier": "9.1.0",
8779
"husky": "9.1.5",
8880
"lint-staged": "15.2.10",
8981
"lodash": "4.17.21",
9082
"openapi-fetch": "0.12.0",
9183
"openapi-typescript": "7.4.0",
92-
"prettier": "3.3.3",
9384
"react": "18.3.1",
9485
"swr": "2.2.5",
9586
"typescript": "5.5.4",
96-
"typescript-eslint": "8.5.0",
9787
"vitest": "2.0.5"
9888
}
9989
}

0 commit comments

Comments
 (0)