create-next-app 15.0.4 → 15.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/index.js +1 -1
- package/dist/templates/app/js/app/layout.js +6 -7
- package/dist/templates/app/js/eslint.config.mjs +14 -0
- package/dist/templates/app/js/gitignore +1 -0
- package/dist/templates/app/ts/app/layout.tsx +6 -7
- package/dist/templates/app/ts/eslint.config.mjs +16 -0
- package/dist/templates/app/ts/gitignore +1 -0
- package/dist/templates/app/ts/next-env.d.ts +1 -1
- package/dist/templates/app-empty/js/eslint.config.mjs +14 -0
- package/dist/templates/app-empty/js/gitignore +3 -2
- package/dist/templates/app-empty/ts/eslint.config.mjs +16 -0
- package/dist/templates/app-empty/ts/gitignore +3 -2
- package/dist/templates/app-empty/ts/next-env.d.ts +1 -1
- package/dist/templates/app-tw/js/app/layout.js +6 -7
- package/dist/templates/app-tw/js/eslint.config.mjs +14 -0
- package/dist/templates/app-tw/js/gitignore +1 -0
- package/dist/templates/app-tw/js/{tailwind.config.js → tailwind.config.mjs} +1 -1
- package/dist/templates/app-tw/ts/app/layout.tsx +6 -7
- package/dist/templates/app-tw/ts/eslint.config.mjs +16 -0
- package/dist/templates/app-tw/ts/gitignore +1 -0
- package/dist/templates/app-tw/ts/next-env.d.ts +1 -1
- package/dist/templates/app-tw-empty/js/eslint.config.mjs +14 -0
- package/dist/templates/app-tw-empty/js/gitignore +3 -2
- package/dist/templates/app-tw-empty/js/{tailwind.config.js → tailwind.config.mjs} +1 -1
- package/dist/templates/app-tw-empty/ts/eslint.config.mjs +16 -0
- package/dist/templates/app-tw-empty/ts/gitignore +3 -2
- package/dist/templates/app-tw-empty/ts/next-env.d.ts +1 -1
- package/dist/templates/default/js/eslint.config.mjs +14 -0
- package/dist/templates/default/js/gitignore +1 -0
- package/dist/templates/default/js/pages/index.js +6 -7
- package/dist/templates/default/ts/eslint.config.mjs +16 -0
- package/dist/templates/default/ts/gitignore +1 -0
- package/dist/templates/default/ts/next-env.d.ts +1 -1
- package/dist/templates/default/ts/pages/index.tsx +6 -7
- package/dist/templates/default-empty/js/eslint.config.mjs +14 -0
- package/dist/templates/default-empty/js/gitignore +3 -2
- package/dist/templates/default-empty/ts/eslint.config.mjs +16 -0
- package/dist/templates/default-empty/ts/gitignore +3 -2
- package/dist/templates/default-empty/ts/next-env.d.ts +1 -1
- package/dist/templates/default-tw/js/eslint.config.mjs +14 -0
- package/dist/templates/default-tw/js/gitignore +1 -0
- package/dist/templates/default-tw/js/pages/index.js +6 -7
- package/dist/templates/default-tw/js/{tailwind.config.js → tailwind.config.mjs} +1 -1
- package/dist/templates/default-tw/ts/eslint.config.mjs +16 -0
- package/dist/templates/default-tw/ts/gitignore +1 -0
- package/dist/templates/default-tw/ts/next-env.d.ts +1 -1
- package/dist/templates/default-tw/ts/pages/index.tsx +6 -7
- package/dist/templates/default-tw-empty/js/eslint.config.mjs +14 -0
- package/dist/templates/default-tw-empty/js/gitignore +3 -2
- package/dist/templates/default-tw-empty/js/{tailwind.config.js → tailwind.config.mjs} +1 -1
- package/dist/templates/default-tw-empty/ts/eslint.config.mjs +16 -0
- package/dist/templates/default-tw-empty/ts/gitignore +3 -2
- package/dist/templates/default-tw-empty/ts/next-env.d.ts +1 -1
- package/package.json +1 -1
- package/dist/templates/app/js/app/fonts/GeistMonoVF.woff +0 -0
- package/dist/templates/app/js/app/fonts/GeistVF.woff +0 -0
- package/dist/templates/app/js/eslintrc.json +0 -3
- package/dist/templates/app/ts/app/fonts/GeistMonoVF.woff +0 -0
- package/dist/templates/app/ts/app/fonts/GeistVF.woff +0 -0
- package/dist/templates/app/ts/eslintrc.json +0 -3
- package/dist/templates/app-empty/js/eslintrc.json +0 -3
- package/dist/templates/app-empty/ts/eslintrc.json +0 -3
- package/dist/templates/app-tw/js/app/fonts/GeistMonoVF.woff +0 -0
- package/dist/templates/app-tw/js/app/fonts/GeistVF.woff +0 -0
- package/dist/templates/app-tw/js/eslintrc.json +0 -3
- package/dist/templates/app-tw/ts/app/fonts/GeistMonoVF.woff +0 -0
- package/dist/templates/app-tw/ts/app/fonts/GeistVF.woff +0 -0
- package/dist/templates/app-tw/ts/eslintrc.json +0 -3
- package/dist/templates/app-tw-empty/js/eslintrc.json +0 -3
- package/dist/templates/app-tw-empty/ts/eslintrc.json +0 -3
- package/dist/templates/default/js/eslintrc.json +0 -3
- package/dist/templates/default/js/pages/fonts/GeistMonoVF.woff +0 -0
- package/dist/templates/default/js/pages/fonts/GeistVF.woff +0 -0
- package/dist/templates/default/ts/eslintrc.json +0 -3
- package/dist/templates/default/ts/pages/fonts/GeistMonoVF.woff +0 -0
- package/dist/templates/default/ts/pages/fonts/GeistVF.woff +0 -0
- package/dist/templates/default-empty/js/eslintrc.json +0 -3
- package/dist/templates/default-empty/ts/eslintrc.json +0 -3
- package/dist/templates/default-tw/js/eslintrc.json +0 -3
- package/dist/templates/default-tw/js/pages/fonts/GeistMonoVF.woff +0 -0
- package/dist/templates/default-tw/js/pages/fonts/GeistVF.woff +0 -0
- package/dist/templates/default-tw/ts/eslintrc.json +0 -3
- package/dist/templates/default-tw/ts/pages/fonts/GeistMonoVF.woff +0 -0
- package/dist/templates/default-tw/ts/pages/fonts/GeistVF.woff +0 -0
- package/dist/templates/default-tw-empty/js/eslintrc.json +0 -3
- package/dist/templates/default-tw-empty/ts/eslintrc.json +0 -3
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Geist, Geist_Mono } from "next/font/google";
|
|
2
2
|
import "./globals.css";
|
|
3
3
|
|
|
4
|
-
const geistSans =
|
|
5
|
-
src: "./fonts/GeistVF.woff",
|
|
4
|
+
const geistSans = Geist({
|
|
6
5
|
variable: "--font-geist-sans",
|
|
7
|
-
|
|
6
|
+
subsets: ["latin"],
|
|
8
7
|
});
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
|
|
9
|
+
const geistMono = Geist_Mono({
|
|
11
10
|
variable: "--font-geist-mono",
|
|
12
|
-
|
|
11
|
+
subsets: ["latin"],
|
|
13
12
|
});
|
|
14
13
|
|
|
15
14
|
export const metadata = {
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { dirname } from "path";
|
|
2
|
+
import { fileURLToPath } from "url";
|
|
3
|
+
import { FlatCompat } from "@eslint/eslintrc";
|
|
4
|
+
|
|
5
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
6
|
+
const __dirname = dirname(__filename);
|
|
7
|
+
|
|
8
|
+
const compat = new FlatCompat({
|
|
9
|
+
baseDirectory: __dirname,
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
const eslintConfig = [...compat.extends("next/core-web-vitals")];
|
|
13
|
+
|
|
14
|
+
export default eslintConfig;
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import type { Metadata } from "next";
|
|
2
|
-
import
|
|
2
|
+
import { Geist, Geist_Mono } from "next/font/google";
|
|
3
3
|
import "./globals.css";
|
|
4
4
|
|
|
5
|
-
const geistSans =
|
|
6
|
-
src: "./fonts/GeistVF.woff",
|
|
5
|
+
const geistSans = Geist({
|
|
7
6
|
variable: "--font-geist-sans",
|
|
8
|
-
|
|
7
|
+
subsets: ["latin"],
|
|
9
8
|
});
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
|
|
10
|
+
const geistMono = Geist_Mono({
|
|
12
11
|
variable: "--font-geist-mono",
|
|
13
|
-
|
|
12
|
+
subsets: ["latin"],
|
|
14
13
|
});
|
|
15
14
|
|
|
16
15
|
export const metadata: Metadata = {
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { dirname } from "path";
|
|
2
|
+
import { fileURLToPath } from "url";
|
|
3
|
+
import { FlatCompat } from "@eslint/eslintrc";
|
|
4
|
+
|
|
5
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
6
|
+
const __dirname = dirname(__filename);
|
|
7
|
+
|
|
8
|
+
const compat = new FlatCompat({
|
|
9
|
+
baseDirectory: __dirname,
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
const eslintConfig = [
|
|
13
|
+
...compat.extends("next/core-web-vitals", "next/typescript"),
|
|
14
|
+
];
|
|
15
|
+
|
|
16
|
+
export default eslintConfig;
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
/// <reference types="next/image-types/global" />
|
|
3
3
|
|
|
4
4
|
// NOTE: This file should not be edited
|
|
5
|
-
// see https://nextjs.org/docs/app/
|
|
5
|
+
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { dirname } from "path";
|
|
2
|
+
import { fileURLToPath } from "url";
|
|
3
|
+
import { FlatCompat } from "@eslint/eslintrc";
|
|
4
|
+
|
|
5
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
6
|
+
const __dirname = dirname(__filename);
|
|
7
|
+
|
|
8
|
+
const compat = new FlatCompat({
|
|
9
|
+
baseDirectory: __dirname,
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
const eslintConfig = [...compat.extends("next/core-web-vitals")];
|
|
13
|
+
|
|
14
|
+
export default eslintConfig;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { dirname } from "path";
|
|
2
|
+
import { fileURLToPath } from "url";
|
|
3
|
+
import { FlatCompat } from "@eslint/eslintrc";
|
|
4
|
+
|
|
5
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
6
|
+
const __dirname = dirname(__filename);
|
|
7
|
+
|
|
8
|
+
const compat = new FlatCompat({
|
|
9
|
+
baseDirectory: __dirname,
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
const eslintConfig = [
|
|
13
|
+
...compat.extends("next/core-web-vitals", "next/typescript"),
|
|
14
|
+
];
|
|
15
|
+
|
|
16
|
+
export default eslintConfig;
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
/// <reference types="next/image-types/global" />
|
|
3
3
|
|
|
4
4
|
// NOTE: This file should not be edited
|
|
5
|
-
// see https://nextjs.org/docs/app/
|
|
5
|
+
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Geist, Geist_Mono } from "next/font/google";
|
|
2
2
|
import "./globals.css";
|
|
3
3
|
|
|
4
|
-
const geistSans =
|
|
5
|
-
src: "./fonts/GeistVF.woff",
|
|
4
|
+
const geistSans = Geist({
|
|
6
5
|
variable: "--font-geist-sans",
|
|
7
|
-
|
|
6
|
+
subsets: ["latin"],
|
|
8
7
|
});
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
|
|
9
|
+
const geistMono = Geist_Mono({
|
|
11
10
|
variable: "--font-geist-mono",
|
|
12
|
-
|
|
11
|
+
subsets: ["latin"],
|
|
13
12
|
});
|
|
14
13
|
|
|
15
14
|
export const metadata = {
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { dirname } from "path";
|
|
2
|
+
import { fileURLToPath } from "url";
|
|
3
|
+
import { FlatCompat } from "@eslint/eslintrc";
|
|
4
|
+
|
|
5
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
6
|
+
const __dirname = dirname(__filename);
|
|
7
|
+
|
|
8
|
+
const compat = new FlatCompat({
|
|
9
|
+
baseDirectory: __dirname,
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
const eslintConfig = [...compat.extends("next/core-web-vitals")];
|
|
13
|
+
|
|
14
|
+
export default eslintConfig;
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import type { Metadata } from "next";
|
|
2
|
-
import
|
|
2
|
+
import { Geist, Geist_Mono } from "next/font/google";
|
|
3
3
|
import "./globals.css";
|
|
4
4
|
|
|
5
|
-
const geistSans =
|
|
6
|
-
src: "./fonts/GeistVF.woff",
|
|
5
|
+
const geistSans = Geist({
|
|
7
6
|
variable: "--font-geist-sans",
|
|
8
|
-
|
|
7
|
+
subsets: ["latin"],
|
|
9
8
|
});
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
|
|
10
|
+
const geistMono = Geist_Mono({
|
|
12
11
|
variable: "--font-geist-mono",
|
|
13
|
-
|
|
12
|
+
subsets: ["latin"],
|
|
14
13
|
});
|
|
15
14
|
|
|
16
15
|
export const metadata: Metadata = {
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { dirname } from "path";
|
|
2
|
+
import { fileURLToPath } from "url";
|
|
3
|
+
import { FlatCompat } from "@eslint/eslintrc";
|
|
4
|
+
|
|
5
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
6
|
+
const __dirname = dirname(__filename);
|
|
7
|
+
|
|
8
|
+
const compat = new FlatCompat({
|
|
9
|
+
baseDirectory: __dirname,
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
const eslintConfig = [
|
|
13
|
+
...compat.extends("next/core-web-vitals", "next/typescript"),
|
|
14
|
+
];
|
|
15
|
+
|
|
16
|
+
export default eslintConfig;
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
/// <reference types="next/image-types/global" />
|
|
3
3
|
|
|
4
4
|
// NOTE: This file should not be edited
|
|
5
|
-
// see https://nextjs.org/docs/app/
|
|
5
|
+
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { dirname } from "path";
|
|
2
|
+
import { fileURLToPath } from "url";
|
|
3
|
+
import { FlatCompat } from "@eslint/eslintrc";
|
|
4
|
+
|
|
5
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
6
|
+
const __dirname = dirname(__filename);
|
|
7
|
+
|
|
8
|
+
const compat = new FlatCompat({
|
|
9
|
+
baseDirectory: __dirname,
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
const eslintConfig = [...compat.extends("next/core-web-vitals")];
|
|
13
|
+
|
|
14
|
+
export default eslintConfig;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { dirname } from "path";
|
|
2
|
+
import { fileURLToPath } from "url";
|
|
3
|
+
import { FlatCompat } from "@eslint/eslintrc";
|
|
4
|
+
|
|
5
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
6
|
+
const __dirname = dirname(__filename);
|
|
7
|
+
|
|
8
|
+
const compat = new FlatCompat({
|
|
9
|
+
baseDirectory: __dirname,
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
const eslintConfig = [
|
|
13
|
+
...compat.extends("next/core-web-vitals", "next/typescript"),
|
|
14
|
+
];
|
|
15
|
+
|
|
16
|
+
export default eslintConfig;
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
/// <reference types="next/image-types/global" />
|
|
3
3
|
|
|
4
4
|
// NOTE: This file should not be edited
|
|
5
|
-
// see https://nextjs.org/docs/app/
|
|
5
|
+
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { dirname } from "path";
|
|
2
|
+
import { fileURLToPath } from "url";
|
|
3
|
+
import { FlatCompat } from "@eslint/eslintrc";
|
|
4
|
+
|
|
5
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
6
|
+
const __dirname = dirname(__filename);
|
|
7
|
+
|
|
8
|
+
const compat = new FlatCompat({
|
|
9
|
+
baseDirectory: __dirname,
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
const eslintConfig = [...compat.extends("next/core-web-vitals")];
|
|
13
|
+
|
|
14
|
+
export default eslintConfig;
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import Head from "next/head";
|
|
2
2
|
import Image from "next/image";
|
|
3
|
-
import
|
|
3
|
+
import { Geist, Geist_Mono } from "next/font/google";
|
|
4
4
|
import styles from "@/styles/Home.module.css";
|
|
5
5
|
|
|
6
|
-
const geistSans =
|
|
7
|
-
src: "./fonts/GeistVF.woff",
|
|
6
|
+
const geistSans = Geist({
|
|
8
7
|
variable: "--font-geist-sans",
|
|
9
|
-
|
|
8
|
+
subsets: ["latin"],
|
|
10
9
|
});
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
|
|
11
|
+
const geistMono = Geist_Mono({
|
|
13
12
|
variable: "--font-geist-mono",
|
|
14
|
-
|
|
13
|
+
subsets: ["latin"],
|
|
15
14
|
});
|
|
16
15
|
|
|
17
16
|
export default function Home() {
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { dirname } from "path";
|
|
2
|
+
import { fileURLToPath } from "url";
|
|
3
|
+
import { FlatCompat } from "@eslint/eslintrc";
|
|
4
|
+
|
|
5
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
6
|
+
const __dirname = dirname(__filename);
|
|
7
|
+
|
|
8
|
+
const compat = new FlatCompat({
|
|
9
|
+
baseDirectory: __dirname,
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
const eslintConfig = [
|
|
13
|
+
...compat.extends("next/core-web-vitals", "next/typescript"),
|
|
14
|
+
];
|
|
15
|
+
|
|
16
|
+
export default eslintConfig;
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
/// <reference types="next/image-types/global" />
|
|
3
3
|
|
|
4
4
|
// NOTE: This file should not be edited
|
|
5
|
-
// see https://nextjs.org/docs/pages/
|
|
5
|
+
// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information.
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import Head from "next/head";
|
|
2
2
|
import Image from "next/image";
|
|
3
|
-
import
|
|
3
|
+
import { Geist, Geist_Mono } from "next/font/google";
|
|
4
4
|
import styles from "@/styles/Home.module.css";
|
|
5
5
|
|
|
6
|
-
const geistSans =
|
|
7
|
-
src: "./fonts/GeistVF.woff",
|
|
6
|
+
const geistSans = Geist({
|
|
8
7
|
variable: "--font-geist-sans",
|
|
9
|
-
|
|
8
|
+
subsets: ["latin"],
|
|
10
9
|
});
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
|
|
11
|
+
const geistMono = Geist_Mono({
|
|
13
12
|
variable: "--font-geist-mono",
|
|
14
|
-
|
|
13
|
+
subsets: ["latin"],
|
|
15
14
|
});
|
|
16
15
|
|
|
17
16
|
export default function Home() {
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { dirname } from "path";
|
|
2
|
+
import { fileURLToPath } from "url";
|
|
3
|
+
import { FlatCompat } from "@eslint/eslintrc";
|
|
4
|
+
|
|
5
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
6
|
+
const __dirname = dirname(__filename);
|
|
7
|
+
|
|
8
|
+
const compat = new FlatCompat({
|
|
9
|
+
baseDirectory: __dirname,
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
const eslintConfig = [...compat.extends("next/core-web-vitals")];
|
|
13
|
+
|
|
14
|
+
export default eslintConfig;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { dirname } from "path";
|
|
2
|
+
import { fileURLToPath } from "url";
|
|
3
|
+
import { FlatCompat } from "@eslint/eslintrc";
|
|
4
|
+
|
|
5
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
6
|
+
const __dirname = dirname(__filename);
|
|
7
|
+
|
|
8
|
+
const compat = new FlatCompat({
|
|
9
|
+
baseDirectory: __dirname,
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
const eslintConfig = [
|
|
13
|
+
...compat.extends("next/core-web-vitals", "next/typescript"),
|
|
14
|
+
];
|
|
15
|
+
|
|
16
|
+
export default eslintConfig;
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
/// <reference types="next/image-types/global" />
|
|
3
3
|
|
|
4
4
|
// NOTE: This file should not be edited
|
|
5
|
-
// see https://nextjs.org/docs/pages/
|
|
5
|
+
// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { dirname } from "path";
|
|
2
|
+
import { fileURLToPath } from "url";
|
|
3
|
+
import { FlatCompat } from "@eslint/eslintrc";
|
|
4
|
+
|
|
5
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
6
|
+
const __dirname = dirname(__filename);
|
|
7
|
+
|
|
8
|
+
const compat = new FlatCompat({
|
|
9
|
+
baseDirectory: __dirname,
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
const eslintConfig = [...compat.extends("next/core-web-vitals")];
|
|
13
|
+
|
|
14
|
+
export default eslintConfig;
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import Image from "next/image";
|
|
2
|
-
import
|
|
2
|
+
import { Geist, Geist_Mono } from "next/font/google";
|
|
3
3
|
|
|
4
|
-
const geistSans =
|
|
5
|
-
src: "./fonts/GeistVF.woff",
|
|
4
|
+
const geistSans = Geist({
|
|
6
5
|
variable: "--font-geist-sans",
|
|
7
|
-
|
|
6
|
+
subsets: ["latin"],
|
|
8
7
|
});
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
|
|
9
|
+
const geistMono = Geist_Mono({
|
|
11
10
|
variable: "--font-geist-mono",
|
|
12
|
-
|
|
11
|
+
subsets: ["latin"],
|
|
13
12
|
});
|
|
14
13
|
|
|
15
14
|
export default function Home() {
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { dirname } from "path";
|
|
2
|
+
import { fileURLToPath } from "url";
|
|
3
|
+
import { FlatCompat } from "@eslint/eslintrc";
|
|
4
|
+
|
|
5
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
6
|
+
const __dirname = dirname(__filename);
|
|
7
|
+
|
|
8
|
+
const compat = new FlatCompat({
|
|
9
|
+
baseDirectory: __dirname,
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
const eslintConfig = [
|
|
13
|
+
...compat.extends("next/core-web-vitals", "next/typescript"),
|
|
14
|
+
];
|
|
15
|
+
|
|
16
|
+
export default eslintConfig;
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
/// <reference types="next/image-types/global" />
|
|
3
3
|
|
|
4
4
|
// NOTE: This file should not be edited
|
|
5
|
-
// see https://nextjs.org/docs/pages/
|
|
5
|
+
// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information.
|