Skip to content

Commit bcb4767

Browse files
dependabot[bot]suica-crux
andauthored
Bump next from 15.4.2 to 16.0.1 (#293)
* Bump next from 15.4.2 to 16.0.1 Bumps [next](https://github.com/vercel/next.js) from 15.4.2 to 16.0.1. - [Release notes](https://github.com/vercel/next.js/releases) - [Changelog](https://github.com/vercel/next.js/blob/canary/release.js) - [Commits](vercel/next.js@v15.4.2...v16.0.1) --- updated-dependencies: - dependency-name: next dependency-version: 16.0.1 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * lint(eslint)をnextのアップデートに対応 * eslintの適用に対応 --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: suica-crux <dinar@vipelar.com>
1 parent 385aa70 commit bcb4767

6 files changed

Lines changed: 67 additions & 69 deletions

File tree

bun.lock

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

eslint.config.mjs

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
1-
import { FlatCompat } from '@eslint/eslintrc';
2-
import { fixupConfigRules } from '@eslint/compat';
3-
import prettier from 'eslint-config-prettier';
1+
import { dirname } from 'path';
2+
import { fileURLToPath } from 'url';
3+
import { FlatCompat } from '@eslint/eslintrc'
44

5-
const flatCompat = new FlatCompat();
5+
const __filename = fileURLToPath(import.meta.url);
6+
const __dirname = dirname(__filename)
67

7-
/**
8-
* @type {import("eslint").Linter.Config}
9-
*/
10-
const config = [
11-
...fixupConfigRules(
12-
flatCompat.extends('next/core-web-vitals'),
13-
flatCompat.extends('next/typescript')
14-
),
15-
prettier,
16-
];
8+
const compat = new FlatCompat({
9+
baseDirectory: __dirname,
10+
})
1711

18-
export default config;
12+
const eslintConfig = [
13+
{
14+
ignores: ['node_modules/**', '.next/**', 'out/**', 'next-env.d.ts'],
15+
},
16+
...compat.extends('next/core-web-vitals', 'next/typescript')
17+
]
18+
19+
export default eslintConfig

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"dev": "next dev --turbopack",
77
"build": "next build",
88
"start": "next start",
9-
"lint": "next lint",
9+
"lint": "eslint .",
1010
"prettier": "prettier --check .",
1111
"format": "prettier --write ."
1212
},
@@ -28,7 +28,7 @@
2828
"date-fns": "^4.1.0",
2929
"escape-html": "^1.0.3",
3030
"gray-matter": "^4.0.3",
31-
"next": "15.4.2",
31+
"next": "16.0.1",
3232
"next-mdx-remote": "^5.0.0",
3333
"react": "19.0.0",
3434
"react-dom": "19.0.0",

src/app/updates/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { Metadata } from 'next';
66
type UpdateItem = {
77
title: string;
88
date: string;
9-
type: string;
9+
type: 'feature' | 'bugfix' | 'improvement' | 'other';
1010
slug: string;
1111
};
1212

@@ -39,7 +39,7 @@ export default async function UpdatesPage() {
3939
</section>
4040

4141
<div className="max-w-2xl px-4 mx-auto">
42-
{updates.map((update: any) => (
42+
{updates.map((update) => (
4343
<UpdateTitle
4444
key={update.slug}
4545
title={update.title}

src/components/button.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use client';
22
import Link from 'next/link';
33
import { useRouter } from 'next/navigation';
4-
import { ComponentPropsWithoutRef, JSX, Ref, forwardRef } from 'react';
4+
import { MouseEvent, ComponentPropsWithoutRef, JSX, Ref, forwardRef } from 'react'; // MouseEvent を追加
55
const styles = {
66
commonDesign: 'border-b text-black px-4 py-2 leading-none m-2',
77
linkDisabled: 'opacity-50 cursor-not-allowed leading-none',
@@ -27,7 +27,7 @@ type Props<T extends AS> = T extends 'button' ? ButtonProps : CustomLinkProps;
2727
// eslint-disable-next-line react/display-name
2828
export const Button = forwardRef<HTMLButtonElement, Props<AS>>((props, ref) => {
2929
const router = useRouter();
30-
const handleClick = (e: any, href: string) => {
30+
const handleClick = (e: MouseEvent<HTMLButtonElement>, href: string) => {
3131
e.preventDefault();
3232
router.push(href);
3333
};
@@ -72,4 +72,4 @@ export const Button = forwardRef<HTMLButtonElement, Props<AS>>((props, ref) => {
7272
</button>
7373
</>
7474
);
75-
}) as <T extends 'button' | 'Link' = 'button'>(p: Props<T>) => JSX.Element;
75+
}) as <T extends 'button' | 'Link' = 'button'>(p: Props<T>) => JSX.Element;

tailwind.config.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import type { Config } from 'tailwindcss';
2+
import typography from '@tailwindcss/typography';
23

34
export default {
45
content: [
@@ -15,5 +16,5 @@ export default {
1516
},
1617
},
1718
},
18-
plugins: [require('@tailwindcss/typography')],
19-
} satisfies Config;
19+
plugins: [typography],
20+
} satisfies Config;

0 commit comments

Comments
 (0)