Skip to content
You are viewing the v1 archive. For current setup guidance, use the v3 docs; the v2 release is preserved at /v2/.

Hono

Package: @santi020k/eslint-config-hono

Use the Hono package for Fetch API apps, especially Cloudflare Workers and other edge runtimes.

pnpm
pnpm add -D @santi020k/eslint-config-hono
npm
npm install -D @santi020k/eslint-config-hono
yarn
yarn add -D @santi020k/eslint-config-hono
bun
bun add -d @santi020k/eslint-config-hono
import { eslintConfig, Runtime } from '@santi020k/eslint-config-basic'
import hono from '@santi020k/eslint-config-hono'
export default eslintConfig({
frameworks: {
hono
},
runtime: Runtime.Worker,
typescript: true
})
  • Worker runtime globals for Fetch API server handlers.
  • A small explicit framework package for Hono projects.
  • A createHonoConfig() factory when a Hono app targets a non-Worker adapter.
  • Auto-detection for hono, plus Worker runtime detection when Cloudflare Workers tooling is present.
  • Plain Hono projects are detected as Hono but keep the default universal runtime.
  • Hono projects with wrangler, @cloudflare/workers-types, or @cloudflare/vitest-pool-workers are detected as Runtime.Worker.
  • The framework package remains explicit, even when Hono is detected from package.json.

Did this page help?

One click helps us spot documentation that needs another pass. No personal data is sent.