Skip to content

Commit fc90cec

Browse files
committed
Migrate to eslint from biome
1 parent 3243823 commit fc90cec

File tree

68 files changed

+1750
-807
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+1750
-807
lines changed

.github/workflows/test-docs.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ on:
1010
- 'docs/cache-handler-docs/**'
1111
- 'internal/eslint-config/**'
1212
- 'package.json'
13-
- 'biome.json'
1413
- 'prettier.config.js'
1514
jobs:
1615
test:

.github/workflows/tests.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ on:
1313
- '.github/workflows/tests.yml'
1414
- 'internal/eslint-config/**'
1515
- 'package.json'
16-
- 'biome.json'
1716
- 'turbo.json'
1817
- 'prettier.config.js'
1918
pull_request:
@@ -28,7 +27,6 @@ on:
2827
- '.github/workflows/tests.yml'
2928
- 'internal/eslint-config/**'
3029
- 'package.json'
31-
- 'biome.json'
3230
- 'turbo.json'
3331
- 'prettier.config.js'
3432
jobs:

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,4 @@ yarn-error.log*
4141

4242
# TypeScript build info
4343
tsconfig.tsbuildinfo
44+
tsconfig.build.tsbuildinfo

.prettierignore

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Dependencies
22
node_modules
3+
pnpm-lock.yaml
34
.pnp
45
.pnp.js
56

@@ -36,13 +37,5 @@ yarn-error.log*
3637
# Misc
3738
.DS_Store
3839
*.pem
39-
40-
41-
# biome formatted files
42-
*.js
43-
*.ts
44-
*.tsx
45-
*.jsx
46-
*.cjs
47-
*.mjs
48-
*.mts
40+
tsconfig.tsbuildinfo
41+
tsconfig.build.tsbuildinfo

.vscode/extensions.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"recommendations": [
3-
"biomejs.biome",
43
"dbaeumer.vscode-eslint",
54
"esbenp.prettier-vscode",
65
"unifiedjs.vscode-mdx",

.vscode/settings.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"typescript.tsdk": "node_modules/typescript/lib",
99
"explorer.fileNesting.enabled": true,
1010
"cSpell.words": ["nextjs", "prerendered", "codestyle"],
11-
"editor.defaultFormatter": "biomejs.biome",
11+
"editor.defaultFormatter": "esbenp.prettier-vscode",
1212
"[jsonc]": {
1313
"editor.defaultFormatter": "esbenp.prettier-vscode"
1414
},
@@ -29,16 +29,16 @@
2929
"editor.wordWrap": "on"
3030
},
3131
"[javascript]": {
32-
"editor.defaultFormatter": "biomejs.biome"
32+
"editor.defaultFormatter": "esbenp.prettier-vscode"
3333
},
3434
"[javascriptreact]": {
35-
"editor.defaultFormatter": "biomejs.biome"
35+
"editor.defaultFormatter": "esbenp.prettier-vscode"
3636
},
3737
"[typescript]": {
38-
"editor.defaultFormatter": "biomejs.biome"
38+
"editor.defaultFormatter": "esbenp.prettier-vscode"
3939
},
4040
"[typescriptreact]": {
41-
"editor.defaultFormatter": "biomejs.biome"
41+
"editor.defaultFormatter": "esbenp.prettier-vscode"
4242
},
4343
"[html]": {
4444
"editor.defaultFormatter": "esbenp.prettier-vscode"

apps/cache-testing/cache-handler-next-example.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,11 @@ export default class CacheHandler {
55
this.options = options;
66
}
77

8-
// biome-ignore lint/suspicious/useAwait: don't bother
98
async get(key) {
109
// This could be stored anywhere, like durable storage
1110
return cache.get(key);
1211
}
1312

14-
// biome-ignore lint/suspicious/useAwait: don't bother
1513
async set(key, data, ctx) {
1614
// This could be stored anywhere, like durable storage
1715
cache.set(key, {
@@ -21,10 +19,9 @@ export default class CacheHandler {
2119
});
2220
}
2321

24-
// biome-ignore lint/suspicious/useAwait: don't bother
2522
async revalidateTag(tag) {
2623
// Iterate over all entries in the cache
27-
// biome-ignore lint/style/useConst: don't bother
24+
2825
for (let [key, value] of cache) {
2926
// If the value's tags include the specified tag, delete this entry
3027
if (value.tags.includes(tag)) {

apps/cache-testing/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
1010
"cluster:stop": "pm2 kill",
1111
"e2e": "playwright test --config=./playwright.config.ts",
1212
"e2e:ui": "playwright test --ui --config=./playwright.config.ts",
13-
"eslint:check": "next lint",
14-
"eslint:fix": "next lint --fix",
13+
"lint:check": "next lint --max-warnings=0",
14+
"lint:fix": "next lint --fix --max-warnings=0",
1515
"playwright:install": "playwright install chromium",
1616
"start": "dotenv -e .env.local -v SERVER_STARTED=1 node .next/standalone/apps/cache-testing/server.js"
1717
},
1818
"dependencies": {
1919
"@neshca/cache-handler": "workspace:*",
2020
"axios": "1.8.4",
21-
"next": "15.3.0-canary.14",
21+
"next": "15.3.0-canary.16",
2222
"react": "19.0.0",
2323
"react-dom": "19.0.0",
2424
"redis": "4.7.0"

apps/cache-testing/src/app/api/revalidate-app/route.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import { revalidatePath, revalidateTag } from 'next/cache';
2-
import type { NextRequest } from 'next/server';
32
import { NextResponse } from 'next/server';
4-
53
import { formatTime } from 'cache-testing/utils/format-time';
4+
import type { NextRequest } from 'next/server';
65

76
export function GET(request: NextRequest): Promise<NextResponse> {
87
const path = request.nextUrl.searchParams.get('path');

apps/cache-testing/src/app/app/no-params/dynamic-false/[slug]/page.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { notFound } from 'next/navigation';
2-
32
import { CommonAppPage } from 'cache-testing/utils/common-app-page';
43
import { createGetData } from 'cache-testing/utils/create-get-data';
54

0 commit comments

Comments
 (0)