Skip to content

Commit

Permalink
Apply lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ken-matsui committed Apr 1, 2024
1 parent d6a7071 commit d3bb895
Show file tree
Hide file tree
Showing 8 changed files with 82 additions and 95 deletions.
2 changes: 1 addition & 1 deletion app/_components/window-actions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ SOFTWARE.
*/

import { clsx } from "@nextui-org/shared-utils";
import React from "react";
import type React from "react";
import { tv } from "tailwind-variants";

export type WindowActionsProps = {
Expand Down
2 changes: 1 addition & 1 deletion app/not-found.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Metadata } from "next";
import type { Metadata } from "next";

export const metadata: Metadata = {
title: "404: Not Found",
Expand Down
2 changes: 1 addition & 1 deletion app/packages/[group]/[name]/_components/pack.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Chip, Code, Divider, Link } from "@nextui-org/react";
import ReactMarkdown from "react-markdown";
import { format } from "timeago.js";
import { GetPackageByNameAndVersionQuery } from "~/graphql";
import type { GetPackageByNameAndVersionQuery } from "~/graphql";

export function Pack({
pack,
Expand Down
2 changes: 1 addition & 1 deletion app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { faArrowRight, faDownload } from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { Code } from "@nextui-org/react";
import { Button, Link } from "@nextui-org/react";
import { Metadata } from "next";
import type { Metadata } from "next";

import { WindowActions } from "./_components/window-actions";

Expand Down
2 changes: 1 addition & 1 deletion codegen.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CodegenConfig } from "@graphql-codegen/cli";
import type { CodegenConfig } from "@graphql-codegen/cli";

const config: CodegenConfig = {
schema: "https://poac.hasura.app/v1/graphql",
Expand Down
2 changes: 1 addition & 1 deletion middleware.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { NextRequest, NextResponse } from "next/server";
import { type NextRequest, NextResponse } from "next/server";

const IS_DEV = process.env.NODE_ENV === "development";

Expand Down
100 changes: 50 additions & 50 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,52 +1,52 @@
{
"name": "poac.dev",
"version": "0.0.0",
"private": true,
"scripts": {
"dev": "next dev",
"prebuild": "yarn generate",
"build": "next build",
"postbuild": "next-sitemap",
"start": "next start",
"lint": "biome check .",
"fmt": "biome format . --write",
"generate": "graphql-codegen --config codegen.ts"
},
"dependencies": {
"@fortawesome/fontawesome-svg-core": "^6.5.1",
"@fortawesome/free-brands-svg-icons": "^6.5.1",
"@fortawesome/free-solid-svg-icons": "^6.5.1",
"@fortawesome/react-fontawesome": "^0.2.0",
"@nextui-org/react": "^2.2.10",
"@vercel/analytics": "^1.2.2",
"@vercel/speed-insights": "^1.0.10",
"framer-motion": "^11.0.24",
"graphql": "^16.8.1",
"next": "14.1.4",
"next-themes": "^0.3.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-markdown": "^9.0.1",
"semver": "^7.6.0",
"timeago.js": "^4.0.2"
},
"devDependencies": {
"@biomejs/biome": "1.6.3",
"@graphql-codegen/cli": "^5.0.2",
"@graphql-codegen/introspection": "^4.0.3",
"@graphql-codegen/typescript-graphql-request": "^6.2.0",
"@graphql-codegen/typescript-operations": "^4.2.0",
"@tailwindcss/typography": "^0.5.12",
"@types/node": "20.12.2",
"@types/react": "18.2.73",
"@types/react-dom": "18.2.19",
"autoprefixer": "^10.4.19",
"graphql-request": "^6.1.0",
"graphql-tag": "^2.0.0",
"next-sitemap": "^4.2.3",
"postcss": "^8.4.38",
"tailwind-variants": "^0.2.1",
"tailwindcss": "^3.4.3",
"typescript": "^5.4.3"
}
"name": "poac.dev",
"version": "0.0.0",
"private": true,
"scripts": {
"dev": "next dev",
"prebuild": "yarn generate",
"build": "next build",
"postbuild": "next-sitemap",
"start": "next start",
"lint": "biome check .",
"fmt": "biome format . --write",
"generate": "graphql-codegen --config codegen.ts"
},
"dependencies": {
"@fortawesome/fontawesome-svg-core": "^6.5.1",
"@fortawesome/free-brands-svg-icons": "^6.5.1",
"@fortawesome/free-solid-svg-icons": "^6.5.1",
"@fortawesome/react-fontawesome": "^0.2.0",
"@nextui-org/react": "^2.2.10",
"@vercel/analytics": "^1.2.2",
"@vercel/speed-insights": "^1.0.10",
"framer-motion": "^11.0.24",
"graphql": "^16.8.1",
"next": "14.1.4",
"next-themes": "^0.3.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-markdown": "^9.0.1",
"semver": "^7.6.0",
"timeago.js": "^4.0.2"
},
"devDependencies": {
"@biomejs/biome": "1.6.3",
"@graphql-codegen/cli": "^5.0.2",
"@graphql-codegen/introspection": "^4.0.3",
"@graphql-codegen/typescript-graphql-request": "^6.2.0",
"@graphql-codegen/typescript-operations": "^4.2.0",
"@tailwindcss/typography": "^0.5.12",
"@types/node": "20.12.2",
"@types/react": "18.2.73",
"@types/react-dom": "18.2.19",
"autoprefixer": "^10.4.19",
"graphql-request": "^6.1.0",
"graphql-tag": "^2.0.0",
"next-sitemap": "^4.2.3",
"postcss": "^8.4.38",
"tailwind-variants": "^0.2.1",
"tailwindcss": "^3.4.3",
"typescript": "^5.4.3"
}
}
65 changes: 26 additions & 39 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,42 +1,29 @@
{
"compilerOptions": {
"target": "es5",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"incremental": true,
"baseUrl": ".",
"paths": {
"~/*": [
"./*"
]
"compilerOptions": {
"target": "es5",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"incremental": true,
"baseUrl": ".",
"paths": {
"~/*": ["./*"]
},
"plugins": [
{
"name": "next"
}
]
},
"plugins": [
{
"name": "next"
}
]
},
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx",
".next/types/**/*.ts"
],
"exclude": [
"node_modules"
]
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
"exclude": ["node_modules"]
}

0 comments on commit d3bb895

Please sign in to comment.