Skip to content

Commit

Permalink
Remove things related to next.js
Browse files Browse the repository at this point in the history
  • Loading branch information
MikuroXina committed Aug 28, 2024
1 parent ade63d2 commit afca900
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 48 deletions.
3 changes: 1 addition & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
extends: ["next/core-web-vitals", "prettier"],
extends: ["prettier"],
plugins: ["chakra-ui"],
parser: "@typescript-eslint/parser",
parserOptions: {
Expand All @@ -8,7 +8,6 @@ module.exports = {
},
rules: {
"sort-imports": "error",
"@next/next/no-img-element": "off",
"chakra-ui/props-order": "error",
"chakra-ui/props-shorthand": "error",
"chakra-ui/require-specific-component": "error",
Expand Down
41 changes: 0 additions & 41 deletions src/components/google-analytics.tsx

This file was deleted.

4 changes: 0 additions & 4 deletions src/components/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React, { Suspense } from "react";

Check notice

Code scanning / CodeQL

Unused variable, import, function or class Note

Unused import Suspense.
import { Box } from "@chakra-ui/react";
import { Footer } from "./footer";
import { GoogleAnalytics } from "./google-analytics";
import { Header } from "./header";
import { Navigation } from "./navigation";
import { Providers } from "./providers";
Expand Down Expand Up @@ -73,9 +72,6 @@ export function Layout({ title, children }: { title: string; children: React.Rea
/>
<IconMetas />
<link rel="manifest" href={"/site.webmanifest"} />
<Suspense>
<GoogleAnalytics />
</Suspense>
<Providers>
<Navigation links={headerLinks} />
<Header />
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@
]
},
"exclude": ["node_modules"],
"include": ["next.config.js", "next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"]
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"]
}

0 comments on commit afca900

Please sign in to comment.