Skip to content

Commit 9a536e6

Browse files
ci: run eslint in each workflow (#1083)
1 parent b70735c commit 9a536e6

39 files changed

+39
-19
lines changed

.github/workflows/ci-ajv-validator.yml

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- run: yarn workspaces focus hono-middleware @hono/ajv-validator
2121
- run: yarn workspace @hono/ajv-validator build
2222
- run: yarn workspace @hono/ajv-validator publint
23+
- run: yarn eslint packages/ajv-validator
2324
- run: yarn test --coverage --project @hono/ajv-validator
2425
- uses: codecov/codecov-action@v5
2526
with:

.github/workflows/ci-arktype-validator.yml

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- run: yarn workspaces focus hono-middleware @hono/arktype-validator
2121
- run: yarn workspace @hono/arktype-validator build
2222
- run: yarn workspace @hono/arktype-validator publint
23+
- run: yarn eslint packages/arktype-validator
2324
- run: yarn test --coverage --project @hono/arktype-validator
2425
- uses: codecov/codecov-action@v5
2526
with:

.github/workflows/ci-auth-js.yml

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- run: yarn workspaces focus hono-middleware @hono/auth-js
2121
- run: yarn workspace @hono/auth-js build
2222
- run: yarn workspace @hono/auth-js publint
23+
- run: yarn eslint packages/auth-js
2324
- run: yarn test --coverage --project @hono/auth-js
2425
- uses: codecov/codecov-action@v5
2526
with:

.github/workflows/ci-bun-transpiler.yml

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- run: yarn workspaces focus hono-middleware @hono/bun-transpiler
2121
- run: yarn workspace @hono/bun-transpiler build
2222
- run: yarn workspace @hono/bun-transpiler publint
23+
- run: yarn eslint packages/bun-transpiler
2324
- run: yarn workspace @hono/bun-transpiler test --coverage --coverage-reporter lcov
2425
- uses: codecov/codecov-action@v5
2526
with:

.github/workflows/ci-casbin.yml

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- run: yarn workspaces focus hono-middleware @hono/casbin
2121
- run: yarn workspace @hono/casbin build
2222
- run: yarn workspace @hono/casbin publint
23+
- run: yarn eslint packages/casbin
2324
- run: yarn test --coverage --project @hono/casbin
2425
- uses: codecov/codecov-action@v5
2526
with:

.github/workflows/ci-class-validator.yml

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- run: yarn workspaces focus hono-middleware @hono/class-validator
2121
- run: yarn workspace @hono/class-validator build
2222
- run: yarn workspace @hono/class-validator publint
23+
- run: yarn eslint packages/class-validator
2324
- run: yarn test --coverage --project @hono/class-validator
2425
- uses: codecov/codecov-action@v5
2526
with:

.github/workflows/ci-clerk-auth.yml

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- run: yarn workspaces focus hono-middleware @hono/clerk-auth
2121
- run: yarn workspace @hono/clerk-auth build
2222
- run: yarn workspace @hono/clerk-auth publint
23+
- run: yarn eslint packages/clerk-auth
2324
- run: yarn test --coverage --project @hono/clerk-auth
2425
- uses: codecov/codecov-action@v5
2526
with:

.github/workflows/ci-cloudflare-access.yml

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- run: yarn workspaces focus hono-middleware @hono/cloudflare-access
2121
- run: yarn workspace @hono/cloudflare-access build
2222
- run: yarn workspace @hono/cloudflare-access publint
23+
- run: yarn eslint packages/cloudflare-access
2324
- run: yarn test --coverage --project @hono/cloudflare-access
2425
- uses: codecov/codecov-action@v5
2526
with:

.github/workflows/ci-conform-validator.yml

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- run: yarn workspaces focus hono-middleware @hono/conform-validator
2121
- run: yarn workspace @hono/conform-validator build
2222
- run: yarn workspace @hono/conform-validator publint
23+
- run: yarn eslint packages/conform-validator
2324
- run: yarn test --coverage --project @hono/conform-validator
2425
- uses: codecov/codecov-action@v5
2526
with:

.github/workflows/ci-effect-validator.yml

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- run: yarn workspaces focus hono-middleware @hono/effect-validator
2121
- run: yarn workspace @hono/effect-validator build
2222
- run: yarn workspace @hono/effect-validator publint
23+
- run: yarn eslint packages/effect-validator
2324
- run: yarn test --coverage --project @hono/effect-validator
2425
- uses: codecov/codecov-action@v5
2526
with:

.github/workflows/ci-esbuild-transpiler.yml

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- run: yarn workspaces focus hono-middleware @hono/esbuild-transpiler
2121
- run: yarn workspace @hono/esbuild-transpiler build
2222
- run: yarn workspace @hono/esbuild-transpiler publint
23+
- run: yarn eslint packages/esbuild-transpiler
2324
- run: yarn test --coverage --project @hono/esbuild-transpiler
2425
- uses: codecov/codecov-action@v5
2526
with:

.github/workflows/ci-event-emitter.yml

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- run: yarn workspaces focus hono-middleware @hono/event-emitter
2121
- run: yarn workspace @hono/event-emitter build
2222
- run: yarn workspace @hono/event-emitter publint
23+
- run: yarn eslint packages/event-emitter
2324
- run: yarn test --coverage --project @hono/event-emitter
2425
- uses: codecov/codecov-action@v5
2526
with:

.github/workflows/ci-firebase-auth.yml

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- run: yarn workspaces focus hono-middleware @hono/firebase-auth
2121
- run: yarn workspace @hono/firebase-auth build
2222
- run: yarn workspace @hono/firebase-auth publint
23+
- run: yarn eslint packages/firebase-auth
2324
- run: yarn test --coverage --project @hono/firebase-auth
2425
- uses: codecov/codecov-action@v5
2526
with:

.github/workflows/ci-graphql-server.yml

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- run: yarn workspaces focus hono-middleware @hono/graphql-server
2121
- run: yarn workspace @hono/graphql-server build
2222
- run: yarn workspace @hono/graphql-server publint
23+
- run: yarn eslint packages/graphql-server
2324
- run: yarn test --coverage --project @hono/graphql-server
2425
- uses: codecov/codecov-action@v5
2526
with:

.github/workflows/ci-hello.yml

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- run: yarn workspaces focus hono-middleware @hono/hello
2121
- run: yarn workspace @hono/hello build
2222
- run: yarn workspace @hono/hello publint
23+
- run: yarn eslint packages/hello
2324
- run: yarn test --coverage --project @hono/hello
2425
- uses: codecov/codecov-action@v5
2526
with:

.github/workflows/ci-lint.yml

-17
This file was deleted.

.github/workflows/ci-medley-router.yml

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- run: yarn workspaces focus hono-middleware @hono/medley-router
2121
- run: yarn workspace @hono/medley-router build
2222
- run: yarn workspace @hono/medley-router publint
23+
- run: yarn eslint packages/medley-router
2324
- run: yarn test --coverage --project @hono/medley-router
2425
- uses: codecov/codecov-action@v5
2526
with:

.github/workflows/ci-node-ws.yml

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- run: yarn workspaces focus hono-middleware @hono/node-ws
2121
- run: yarn workspace @hono/node-ws build
2222
- run: yarn workspace @hono/node-ws publint
23+
- run: yarn eslint packages/node-ws
2324
- run: yarn test --coverage --project @hono/node-ws
2425
- uses: codecov/codecov-action@v5
2526
with:

.github/workflows/ci-oauth-providers.yml

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- run: yarn workspaces focus hono-middleware @hono/oauth-providers
2121
- run: yarn workspace @hono/oauth-providers build
2222
- run: yarn workspace @hono/oauth-providers publint
23+
- run: yarn eslint packages/oauth-providers
2324
- run: yarn test --coverage --project @hono/oauth-providers
2425
- uses: codecov/codecov-action@v5
2526
with:

.github/workflows/ci-oidc-auth.yml

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- run: yarn workspaces focus hono-middleware @hono/oidc-auth
2121
- run: yarn workspace @hono/oidc-auth build
2222
- run: yarn workspace @hono/oidc-auth publint
23+
- run: yarn eslint packages/oidc-auth
2324
- run: yarn test --coverage --project @hono/oidc-auth
2425
- uses: codecov/codecov-action@v5
2526
with:

.github/workflows/ci-otel.yml

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- run: yarn workspaces focus hono-middleware @hono/otel
2121
- run: yarn workspace @hono/otel build
2222
- run: yarn workspace @hono/otel publint
23+
- run: yarn eslint packages/otel
2324
- run: yarn test --coverage --project @hono/otel
2425
- uses: codecov/codecov-action@v5
2526
with:

.github/workflows/ci-prometheus.yml

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- run: yarn workspaces focus hono-middleware @hono/prometheus
2121
- run: yarn workspace @hono/prometheus build
2222
- run: yarn workspace @hono/prometheus publint
23+
- run: yarn eslint packages/prometheus
2324
- run: yarn test --coverage --project @hono/prometheus
2425
- uses: codecov/codecov-action@v5
2526
with:

.github/workflows/ci-qwik-city.yml

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- run: yarn workspaces focus hono-middleware @hono/qwik-city
2121
- run: yarn workspace @hono/qwik-city build
2222
- run: yarn workspace @hono/qwik-city publint
23+
- run: yarn eslint packages/qwik-city
2324
# - run: yarn test --coverage --project @hono/qwik-city
2425
# - uses: codecov/codecov-action@v5
2526
# with:

.github/workflows/ci-react-compat.yml

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- run: yarn workspaces focus hono-middleware @hono/react-compat
2121
- run: yarn workspace @hono/react-compat build
2222
- run: yarn workspace @hono/react-compat publint
23+
- run: yarn eslint packages/react-compat
2324
# - run: yarn test --coverage --project @hono/react-compat
2425
# - uses: codecov/codecov-action@v5
2526
# with:

.github/workflows/ci-react-renderer.yml

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- run: yarn workspaces focus hono-middleware @hono/react-renderer
2121
- run: yarn workspace @hono/react-renderer build
2222
- run: yarn workspace @hono/react-renderer publint
23+
- run: yarn eslint packages/react-renderer
2324
- run: yarn test --coverage --project @hono/react-renderer
2425
- uses: codecov/codecov-action@v5
2526
with:

.github/workflows/ci-sentry.yml

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- run: yarn workspaces focus hono-middleware @hono/sentry
2121
- run: yarn workspace @hono/sentry build
2222
- run: yarn workspace @hono/sentry publint
23+
- run: yarn eslint packages/sentry
2324
- run: yarn test --coverage --project @hono/sentry
2425
- uses: codecov/codecov-action@v5
2526
with:

.github/workflows/ci-standard-validator.yml

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- run: yarn workspaces focus hono-middleware @hono/standard-validator
2121
- run: yarn workspace @hono/standard-validator build
2222
- run: yarn workspace @hono/standard-validator publint
23+
- run: yarn eslint packages/standard-validator
2324
- run: yarn test --coverage --project @hono/standard-validator
2425
- uses: codecov/codecov-action@v5
2526
with:

.github/workflows/ci-swagger-editor.yml

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- run: yarn workspaces focus hono-middleware @hono/swagger-editor
2121
- run: yarn workspace @hono/swagger-editor build
2222
- run: yarn workspace @hono/swagger-editor publint
23+
- run: yarn eslint packages/swagger-editor
2324
- run: yarn test --coverage --project @hono/swagger-editor
2425
- uses: codecov/codecov-action@v5
2526
with:

.github/workflows/ci-swagger-ui.yml

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- run: yarn workspaces focus hono-middleware @hono/swagger-ui
2121
- run: yarn workspace @hono/swagger-ui build
2222
- run: yarn workspace @hono/swagger-ui publint
23+
- run: yarn eslint packages/swagger-ui
2324
- run: yarn test --coverage --project @hono/swagger-ui
2425
- uses: codecov/codecov-action@v5
2526
with:

.github/workflows/ci-trpc-server.yml

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- run: yarn workspaces focus hono-middleware @hono/trpc-server
2121
- run: yarn workspace @hono/trpc-server build
2222
- run: yarn workspace @hono/trpc-server publint
23+
- run: yarn eslint packages/trpc-server
2324
- run: yarn test --coverage --project @hono/trpc-server
2425
- uses: codecov/codecov-action@v5
2526
with:

.github/workflows/ci-tsyringe.yml

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- run: yarn workspaces focus hono-middleware @hono/tsyringe
2121
- run: yarn workspace @hono/tsyringe build
2222
- run: yarn workspace @hono/tsyringe publint
23+
- run: yarn eslint packages/tsyringe
2324
- run: yarn test --coverage --project @hono/tsyringe
2425
- uses: codecov/codecov-action@v5
2526
with:

.github/workflows/ci-typebox-validator.yml

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- run: yarn workspaces focus hono-middleware @hono/typebox-validator
2121
- run: yarn workspace @hono/typebox-validator build
2222
- run: yarn workspace @hono/typebox-validator publint
23+
- run: yarn eslint packages/typebox-validator
2324
- run: yarn test --coverage --project @hono/typebox-validator
2425
- uses: codecov/codecov-action@v5
2526
with:

.github/workflows/ci-typia-validator.yml

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- run: yarn workspaces focus hono-middleware @hono/typia-validator
2121
- run: yarn workspace @hono/typia-validator build
2222
- run: yarn workspace @hono/typia-validator publint
23+
- run: yarn eslint packages/typia-validator
2324
- run: yarn test --coverage --project @hono/typia-validator
2425
- uses: codecov/codecov-action@v5
2526
with:

.github/workflows/ci-valibot-validator.yml

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- run: yarn workspaces focus hono-middleware @hono/valibot-validator
2121
- run: yarn workspace @hono/valibot-validator build
2222
- run: yarn workspace @hono/valibot-validator publint
23+
- run: yarn eslint packages/valibot-validator
2324
- run: yarn test --coverage --project @hono/valibot-validator
2425
- uses: codecov/codecov-action@v5
2526
with:

.github/workflows/ci-zod-openapi.yml

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- run: yarn workspaces focus hono-middleware @hono/zod-openapi
2121
- run: yarn workspace @hono/zod-openapi build
2222
- run: yarn workspace @hono/zod-openapi publint
23+
- run: yarn eslint packages/zod-openapi
2324
- run: yarn test --coverage --project @hono/zod-openapi
2425
- uses: codecov/codecov-action@v5
2526
with:

.github/workflows/ci-zod-validator.yml

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- run: yarn workspaces focus hono-middleware @hono/zod-validator
2121
- run: yarn workspace @hono/zod-validator build
2222
- run: yarn workspace @hono/zod-validator publint
23+
- run: yarn eslint packages/zod-validator
2324
- run: yarn test --coverage --project @hono/zod-validator
2425
- uses: codecov/codecov-action@v5
2526
with:

eslint.config.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
import baseConfig from '@hono/eslint-config'
12
import { defineConfig, globalIgnores } from 'eslint/config'
2-
import baseConfig from './packages/eslint-config/index.js'
33

44
export default defineConfig(globalIgnores(['.yarn', '**/dist']), {
55
extends: baseConfig,

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
"@changesets/cli": "^2.26.0",
6363
"@cloudflare/vitest-pool-workers": "^0.7.8",
6464
"@cloudflare/workers-types": "^4.20230307.0",
65+
"@hono/eslint-config": "workspace:*",
6566
"@ryoppippi/unplugin-typia": "^1.2.0",
6667
"@types/node": "^20.14.8",
6768
"@typescript-eslint/eslint-plugin": "^8.7.0",

yarn.lock

+2-1
Original file line numberDiff line numberDiff line change
@@ -1983,7 +1983,7 @@ __metadata:
19831983
languageName: unknown
19841984
linkType: soft
19851985

1986-
"@hono/eslint-config@workspace:packages/eslint-config":
1986+
"@hono/eslint-config@workspace:*, @hono/eslint-config@workspace:packages/eslint-config":
19871987
version: 0.0.0-use.local
19881988
resolution: "@hono/eslint-config@workspace:packages/eslint-config"
19891989
dependencies:
@@ -8413,6 +8413,7 @@ __metadata:
84138413
"@changesets/cli": "npm:^2.26.0"
84148414
"@cloudflare/vitest-pool-workers": "npm:^0.7.8"
84158415
"@cloudflare/workers-types": "npm:^4.20230307.0"
8416+
"@hono/eslint-config": "workspace:*"
84168417
"@ryoppippi/unplugin-typia": "npm:^1.2.0"
84178418
"@types/node": "npm:^20.14.8"
84188419
"@typescript-eslint/eslint-plugin": "npm:^8.7.0"

0 commit comments

Comments
 (0)