Hono
Package: @santi020k/eslint-config-hono
Use the Hono package for Fetch API apps, especially Cloudflare Workers and other edge runtimes.
Install
Section titled “Install”pnpm add -D @santi020k/eslint-config-hononpm install -D @santi020k/eslint-config-honoyarn add -D @santi020k/eslint-config-honobun add -d @santi020k/eslint-config-honoConfigure
Section titled “Configure”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})What It Adds
Section titled “What It Adds”- 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-workersare detected asRuntime.Worker. - The framework package remains explicit, even when Hono is detected from
package.json.
Repository Links
Section titled “Repository Links”- Source Package: packages/hono
- Playground: packages/playground/hono
Related Pages
Section titled “Related Pages”Did this page help?
One click helps us spot documentation that needs another pass. No personal data is sent.