Skip to content

Commit d1b43f7

Browse files
authored
Merge pull request #56 from Doarakko/dependabot/npm_and_yarn/biomejs/biome-2.2.5
Bump @biomejs/biome from 1.9.4 to 2.2.5
2 parents 0c4208e + c48bb66 commit d1b43f7

File tree

6 files changed

+67
-69
lines changed

6 files changed

+67
-69
lines changed

biome.json

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,29 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/1.9.0/schema.json",
2+
"$schema": "https://biomejs.dev/schemas/2.2.5/schema.json",
33
"vcs": {
44
"enabled": false,
55
"clientKind": "git",
66
"useIgnoreFile": false
77
},
88
"files": {
99
"ignoreUnknown": false,
10-
"ignore": ["node_modules/**", ".next/**", ".vercel/**"]
10+
"includes": ["**", "!**/node_modules", "!**/.next", "!**/.vercel"]
1111
},
1212
"formatter": {
1313
"enabled": true,
1414
"indentStyle": "space"
1515
},
16-
"organizeImports": {
17-
"enabled": true
18-
},
16+
"assist": { "actions": { "source": { "organizeImports": "on" } } },
1917
"linter": {
2018
"enabled": true,
2119
"rules": {
22-
"recommended": true
20+
"recommended": true,
21+
"performance": {
22+
"noImgElement": "off"
23+
},
24+
"suspicious": {
25+
"noUnknownAtRules": "off"
26+
}
2327
}
2428
},
2529
"javascript": {

package-lock.json

Lines changed: 36 additions & 37 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"react-dom": "19.0.0"
2424
},
2525
"devDependencies": {
26-
"@biomejs/biome": "1.9.4",
26+
"@biomejs/biome": "2.2.5",
2727
"@cloudflare/next-on-pages": "^1.13.12",
2828
"@cloudflare/workers-types": "^4.20240909.0",
2929
"@octokit/types": "^14.1.0",

src/app/api/repositories/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export async function GET(request: Request) {
3434
}
3535

3636
const limitParam = searchParams.get("limit");
37-
const limit = limitParam ? Number.parseInt(limitParam) : defaultLimit;
37+
const limit = limitParam ? Number.parseInt(limitParam, 10) : defaultLimit;
3838
if (limit > maxLimit) {
3939
return NextResponse.json(
4040
{ error: "Invalid limit parameter" },

src/app/api/usernames/[username]/repositories/[repositoryName]/commits/route.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ import { GITHUB_REPOSITORY_NAME_REGEX } from "@/constants";
77

88
export const runtime = "edge";
99

10-
// https://docs.github.com/ja/rest/commits/commits?apiVersion=2022-11-28#list-commits
11-
const startDate = new Date(Date.UTC(1970, 0, 1));
12-
1310
const defaultCommitLimit = 1;
1411

1512
export async function GET(request: Request) {

src/app/privacy/page.tsx

Lines changed: 19 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -8,28 +8,26 @@ export const metadata: Metadata = {
88

99
const Privacy = () => {
1010
return (
11-
<>
12-
<div className="min-h-screen bg-gray-100 flex flex-col items-center py-12 px-4 sm:px-6 lg:px-8 text-gray-700">
13-
<h1 className="text-center text-2xl">Privacy Policy</h1>
14-
<div className="pt-4 pl-8 pr-8 leading-8">
15-
This site uses Google Analytics, a traffic analysis tool by Google.
16-
This tool uses cookies to collect information on how site visitors use
17-
our site. This information includes IP address, browser type, referrer
18-
information, language used, and time of visit. This information is
19-
stored on servers provided by Google. Google will not disclose this
20-
information to third parties. However, Google may be required to
21-
disclose this information if required to do so by law; by using Google
22-
Analytics, you consent to the collection and use of this information
23-
by Google for the purposes described above. If you do not wish to
24-
allow the collection of information by cookies, you may refuse the use
25-
of cookies by changing the settings on your browser. However, if you
26-
do so, you may not be able to use all of the features of this site.
27-
The privacy policy of this site is subject to change. You can check
28-
this page periodically to ensure that you are aware of the latest
29-
version of our privacy policy.
30-
</div>
11+
<div className="min-h-screen bg-gray-100 flex flex-col items-center py-12 px-4 sm:px-6 lg:px-8 text-gray-700">
12+
<h1 className="text-center text-2xl">Privacy Policy</h1>
13+
<div className="pt-4 pl-8 pr-8 leading-8">
14+
This site uses Google Analytics, a traffic analysis tool by Google. This
15+
tool uses cookies to collect information on how site visitors use our
16+
site. This information includes IP address, browser type, referrer
17+
information, language used, and time of visit. This information is
18+
stored on servers provided by Google. Google will not disclose this
19+
information to third parties. However, Google may be required to
20+
disclose this information if required to do so by law; by using Google
21+
Analytics, you consent to the collection and use of this information by
22+
Google for the purposes described above. If you do not wish to allow the
23+
collection of information by cookies, you may refuse the use of cookies
24+
by changing the settings on your browser. However, if you do so, you may
25+
not be able to use all of the features of this site. The privacy policy
26+
of this site is subject to change. You can check this page periodically
27+
to ensure that you are aware of the latest version of our privacy
28+
policy.
3129
</div>
32-
</>
30+
</div>
3331
);
3432
};
3533

0 commit comments

Comments
 (0)