diff --git a/.eslintignore b/.eslintignore deleted file mode 100644 index b86e775..0000000 --- a/.eslintignore +++ /dev/null @@ -1,7 +0,0 @@ -tsconfig.eslint.json -vite.config.ts -tailwind.config.js -postcss.config.js -/app/global.d.ts -.eslintrc.cjs -node_modules diff --git a/.eslintrc.cjs b/.eslintrc.cjs deleted file mode 100644 index b2a6e96..0000000 --- a/.eslintrc.cjs +++ /dev/null @@ -1,23 +0,0 @@ -module.exports = { - root: true, - env: { - es6: true, - node: true, - }, - parserOptions: { - parser: "@typescript-eslint/parser", - sourceType: "module", - ecmaVersion: 2019, // Node.js 12の場合は2019、他のバージョンのNode.jsを利用している場合は場合は適宜変更する - project: ["tsconfig.eslint.json"], - tsconfigRootDir: __dirname, - }, - plugins: ["@typescript-eslint"], - extends: [ - "eslint:recommended", - "plugin:@typescript-eslint/recommended", - "plugin:@typescript-eslint/recommended-requiring-type-checking", - ], - rules: { - "@typescript-eslint/no-floating-promises": "off", - }, -}; diff --git a/app/client.ts b/app/client.ts index 4a2cea5..16ecf96 100644 --- a/app/client.ts +++ b/app/client.ts @@ -1,3 +1,3 @@ -import { createClient } from "honox/client"; +import { createClient } from 'honox/client' -createClient(); +createClient() diff --git a/package.json b/package.json index cde8c6b..35ee9eb 100644 --- a/package.json +++ b/package.json @@ -1,31 +1,28 @@ { - "name": "blog", - "type": "module", - "scripts": { - "dev": "vite", - "build": "vite build --mode client && vite build", - "preview": "wrangler pages dev ./dist", - "deploy": "$npm_execpath run build && wrangler pages deploy ./dist", - "format": "biome format . --write", - "lint": "biome lint .", - "check": "biome check --apply ." - }, - "private": true, - "dependencies": { - "hono": "^4.0.5", - "honox": "^0.1.4" - }, - "devDependencies": { - "@biomejs/biome": "1.5.3", - "@cloudflare/workers-types": "^4.20240208.0", - "@hono/vite-cloudflare-pages": "^0.2.4", - "@typescript-eslint/eslint-plugin": "^7.0.2", - "@typescript-eslint/parser": "^7.0.2", - "autoprefixer": "^10.4.17", - "eslint": "^8.56.0", - "postcss": "^8.4.35", - "tailwindcss": "^3.4.1", - "vite": "^5.0.12", - "wrangler": "^3.27.0" - } + "name": "blog", + "type": "module", + "scripts": { + "dev": "vite", + "build": "vite build --mode client && vite build", + "preview": "wrangler pages dev ./dist", + "deploy": "$npm_execpath run build && wrangler pages deploy ./dist", + "format": "biome format . --write", + "lint": "biome lint .", + "check": "biome check --apply ." + }, + "private": true, + "dependencies": { + "hono": "^4.0.5", + "honox": "^0.1.4" + }, + "devDependencies": { + "@biomejs/biome": "1.5.3", + "@cloudflare/workers-types": "^4.20240208.0", + "@hono/vite-cloudflare-pages": "^0.2.4", + "autoprefixer": "^10.4.17", + "postcss": "^8.4.35", + "tailwindcss": "^3.4.1", + "vite": "^5.0.12", + "wrangler": "^3.27.0" + } } diff --git a/tsconfig.eslint.json b/tsconfig.eslint.json deleted file mode 100644 index 7ceb02d..0000000 --- a/tsconfig.eslint.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "./tsconfig.json", - "include": ["./app/"], - "exclude": ["node_modules"] -} diff --git a/tsconfig.json b/tsconfig.json index 3aa2131..08f23dd 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,9 +4,14 @@ "module": "ESNext", "moduleResolution": "Bundler", "strict": true, - "lib": ["ESNext", "DOM"], - "types": ["@cloudflare/workers-types"], + "lib": [ + "ESNext", + "DOM" + ], + "types": [ + "@cloudflare/workers-types" + ], "jsx": "react-jsx", "jsxImportSource": "hono/jsx" - } + }, }