diff --git a/.github/workflows/ci-ajv-validator.yml b/.github/workflows/ci-ajv-validator.yml index 2d64a651..ffd7e725 100644 --- a/.github/workflows/ci-ajv-validator.yml +++ b/.github/workflows/ci-ajv-validator.yml @@ -20,6 +20,7 @@ jobs: - run: yarn workspaces focus hono-middleware @hono/ajv-validator - run: yarn workspace @hono/ajv-validator build - run: yarn workspace @hono/ajv-validator publint + - run: yarn eslint packages/ajv-validator - run: yarn test --coverage --project @hono/ajv-validator - uses: codecov/codecov-action@v5 with: diff --git a/.github/workflows/ci-arktype-validator.yml b/.github/workflows/ci-arktype-validator.yml index 3d8a31aa..3af35685 100644 --- a/.github/workflows/ci-arktype-validator.yml +++ b/.github/workflows/ci-arktype-validator.yml @@ -20,6 +20,7 @@ jobs: - run: yarn workspaces focus hono-middleware @hono/arktype-validator - run: yarn workspace @hono/arktype-validator build - run: yarn workspace @hono/arktype-validator publint + - run: yarn eslint packages/arktype-validator - run: yarn test --coverage --project @hono/arktype-validator - uses: codecov/codecov-action@v5 with: diff --git a/.github/workflows/ci-auth-js.yml b/.github/workflows/ci-auth-js.yml index b55c6d2f..4d874be0 100644 --- a/.github/workflows/ci-auth-js.yml +++ b/.github/workflows/ci-auth-js.yml @@ -20,6 +20,7 @@ jobs: - run: yarn workspaces focus hono-middleware @hono/auth-js - run: yarn workspace @hono/auth-js build - run: yarn workspace @hono/auth-js publint + - run: yarn eslint packages/auth-js - run: yarn test --coverage --project @hono/auth-js - uses: codecov/codecov-action@v5 with: diff --git a/.github/workflows/ci-bun-transpiler.yml b/.github/workflows/ci-bun-transpiler.yml index baadc5d0..6eee2415 100644 --- a/.github/workflows/ci-bun-transpiler.yml +++ b/.github/workflows/ci-bun-transpiler.yml @@ -20,6 +20,7 @@ jobs: - run: yarn workspaces focus hono-middleware @hono/bun-transpiler - run: yarn workspace @hono/bun-transpiler build - run: yarn workspace @hono/bun-transpiler publint + - run: yarn eslint packages/bun-transpiler - run: yarn workspace @hono/bun-transpiler test --coverage --coverage-reporter lcov - uses: codecov/codecov-action@v5 with: diff --git a/.github/workflows/ci-casbin.yml b/.github/workflows/ci-casbin.yml index 739f90e6..1bee855d 100644 --- a/.github/workflows/ci-casbin.yml +++ b/.github/workflows/ci-casbin.yml @@ -20,6 +20,7 @@ jobs: - run: yarn workspaces focus hono-middleware @hono/casbin - run: yarn workspace @hono/casbin build - run: yarn workspace @hono/casbin publint + - run: yarn eslint packages/casbin - run: yarn test --coverage --project @hono/casbin - uses: codecov/codecov-action@v5 with: diff --git a/.github/workflows/ci-class-validator.yml b/.github/workflows/ci-class-validator.yml index 0a2bc12c..c43bdfc5 100644 --- a/.github/workflows/ci-class-validator.yml +++ b/.github/workflows/ci-class-validator.yml @@ -20,6 +20,7 @@ jobs: - run: yarn workspaces focus hono-middleware @hono/class-validator - run: yarn workspace @hono/class-validator build - run: yarn workspace @hono/class-validator publint + - run: yarn eslint packages/class-validator - run: yarn test --coverage --project @hono/class-validator - uses: codecov/codecov-action@v5 with: diff --git a/.github/workflows/ci-clerk-auth.yml b/.github/workflows/ci-clerk-auth.yml index 49134115..5bcbe8f7 100644 --- a/.github/workflows/ci-clerk-auth.yml +++ b/.github/workflows/ci-clerk-auth.yml @@ -20,6 +20,7 @@ jobs: - run: yarn workspaces focus hono-middleware @hono/clerk-auth - run: yarn workspace @hono/clerk-auth build - run: yarn workspace @hono/clerk-auth publint + - run: yarn eslint packages/clerk-auth - run: yarn test --coverage --project @hono/clerk-auth - uses: codecov/codecov-action@v5 with: diff --git a/.github/workflows/ci-cloudflare-access.yml b/.github/workflows/ci-cloudflare-access.yml index 3270ecad..7e81563b 100644 --- a/.github/workflows/ci-cloudflare-access.yml +++ b/.github/workflows/ci-cloudflare-access.yml @@ -20,6 +20,7 @@ jobs: - run: yarn workspaces focus hono-middleware @hono/cloudflare-access - run: yarn workspace @hono/cloudflare-access build - run: yarn workspace @hono/cloudflare-access publint + - run: yarn eslint packages/cloudflare-access - run: yarn test --coverage --project @hono/cloudflare-access - uses: codecov/codecov-action@v5 with: diff --git a/.github/workflows/ci-conform-validator.yml b/.github/workflows/ci-conform-validator.yml index 47426fbb..ed59a9d5 100644 --- a/.github/workflows/ci-conform-validator.yml +++ b/.github/workflows/ci-conform-validator.yml @@ -20,6 +20,7 @@ jobs: - run: yarn workspaces focus hono-middleware @hono/conform-validator - run: yarn workspace @hono/conform-validator build - run: yarn workspace @hono/conform-validator publint + - run: yarn eslint packages/conform-validator - run: yarn test --coverage --project @hono/conform-validator - uses: codecov/codecov-action@v5 with: diff --git a/.github/workflows/ci-effect-validator.yml b/.github/workflows/ci-effect-validator.yml index 5943c12d..ac684a0c 100644 --- a/.github/workflows/ci-effect-validator.yml +++ b/.github/workflows/ci-effect-validator.yml @@ -20,6 +20,7 @@ jobs: - run: yarn workspaces focus hono-middleware @hono/effect-validator - run: yarn workspace @hono/effect-validator build - run: yarn workspace @hono/effect-validator publint + - run: yarn eslint packages/effect-validator - run: yarn test --coverage --project @hono/effect-validator - uses: codecov/codecov-action@v5 with: diff --git a/.github/workflows/ci-esbuild-transpiler.yml b/.github/workflows/ci-esbuild-transpiler.yml index e4d53a92..855b53ae 100644 --- a/.github/workflows/ci-esbuild-transpiler.yml +++ b/.github/workflows/ci-esbuild-transpiler.yml @@ -20,6 +20,7 @@ jobs: - run: yarn workspaces focus hono-middleware @hono/esbuild-transpiler - run: yarn workspace @hono/esbuild-transpiler build - run: yarn workspace @hono/esbuild-transpiler publint + - run: yarn eslint packages/esbuild-transpiler - run: yarn test --coverage --project @hono/esbuild-transpiler - uses: codecov/codecov-action@v5 with: diff --git a/.github/workflows/ci-event-emitter.yml b/.github/workflows/ci-event-emitter.yml index 1b600492..fcee588d 100644 --- a/.github/workflows/ci-event-emitter.yml +++ b/.github/workflows/ci-event-emitter.yml @@ -20,6 +20,7 @@ jobs: - run: yarn workspaces focus hono-middleware @hono/event-emitter - run: yarn workspace @hono/event-emitter build - run: yarn workspace @hono/event-emitter publint + - run: yarn eslint packages/event-emitter - run: yarn test --coverage --project @hono/event-emitter - uses: codecov/codecov-action@v5 with: diff --git a/.github/workflows/ci-firebase-auth.yml b/.github/workflows/ci-firebase-auth.yml index d3127ea3..f92741b0 100644 --- a/.github/workflows/ci-firebase-auth.yml +++ b/.github/workflows/ci-firebase-auth.yml @@ -20,6 +20,7 @@ jobs: - run: yarn workspaces focus hono-middleware @hono/firebase-auth - run: yarn workspace @hono/firebase-auth build - run: yarn workspace @hono/firebase-auth publint + - run: yarn eslint packages/firebase-auth - run: yarn test --coverage --project @hono/firebase-auth - uses: codecov/codecov-action@v5 with: diff --git a/.github/workflows/ci-graphql-server.yml b/.github/workflows/ci-graphql-server.yml index 8e3d393f..f123317c 100644 --- a/.github/workflows/ci-graphql-server.yml +++ b/.github/workflows/ci-graphql-server.yml @@ -20,6 +20,7 @@ jobs: - run: yarn workspaces focus hono-middleware @hono/graphql-server - run: yarn workspace @hono/graphql-server build - run: yarn workspace @hono/graphql-server publint + - run: yarn eslint packages/graphql-server - run: yarn test --coverage --project @hono/graphql-server - uses: codecov/codecov-action@v5 with: diff --git a/.github/workflows/ci-hello.yml b/.github/workflows/ci-hello.yml index 0438bf4a..ab7b42f0 100644 --- a/.github/workflows/ci-hello.yml +++ b/.github/workflows/ci-hello.yml @@ -20,6 +20,7 @@ jobs: - run: yarn workspaces focus hono-middleware @hono/hello - run: yarn workspace @hono/hello build - run: yarn workspace @hono/hello publint + - run: yarn eslint packages/hello - run: yarn test --coverage --project @hono/hello - uses: codecov/codecov-action@v5 with: diff --git a/.github/workflows/ci-lint.yml b/.github/workflows/ci-lint.yml deleted file mode 100644 index 9a802583..00000000 --- a/.github/workflows/ci-lint.yml +++ /dev/null @@ -1,17 +0,0 @@ -name: ci-lint -on: - push: - branches: [main] - pull_request: - branches: ['*'] - -jobs: - eslint: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: 20.x - - run: yarn install - - run: yarn lint \ No newline at end of file diff --git a/.github/workflows/ci-medley-router.yml b/.github/workflows/ci-medley-router.yml index ec9374f7..3e59f0aa 100644 --- a/.github/workflows/ci-medley-router.yml +++ b/.github/workflows/ci-medley-router.yml @@ -20,6 +20,7 @@ jobs: - run: yarn workspaces focus hono-middleware @hono/medley-router - run: yarn workspace @hono/medley-router build - run: yarn workspace @hono/medley-router publint + - run: yarn eslint packages/medley-router - run: yarn test --coverage --project @hono/medley-router - uses: codecov/codecov-action@v5 with: diff --git a/.github/workflows/ci-node-ws.yml b/.github/workflows/ci-node-ws.yml index b7fc027f..d86a4b12 100644 --- a/.github/workflows/ci-node-ws.yml +++ b/.github/workflows/ci-node-ws.yml @@ -20,6 +20,7 @@ jobs: - run: yarn workspaces focus hono-middleware @hono/node-ws - run: yarn workspace @hono/node-ws build - run: yarn workspace @hono/node-ws publint + - run: yarn eslint packages/node-ws - run: yarn test --coverage --project @hono/node-ws - uses: codecov/codecov-action@v5 with: diff --git a/.github/workflows/ci-oauth-providers.yml b/.github/workflows/ci-oauth-providers.yml index b286d585..e9b99de7 100644 --- a/.github/workflows/ci-oauth-providers.yml +++ b/.github/workflows/ci-oauth-providers.yml @@ -20,6 +20,7 @@ jobs: - run: yarn workspaces focus hono-middleware @hono/oauth-providers - run: yarn workspace @hono/oauth-providers build - run: yarn workspace @hono/oauth-providers publint + - run: yarn eslint packages/oauth-providers - run: yarn test --coverage --project @hono/oauth-providers - uses: codecov/codecov-action@v5 with: diff --git a/.github/workflows/ci-oidc-auth.yml b/.github/workflows/ci-oidc-auth.yml index d9636eb7..ce0183ec 100644 --- a/.github/workflows/ci-oidc-auth.yml +++ b/.github/workflows/ci-oidc-auth.yml @@ -20,6 +20,7 @@ jobs: - run: yarn workspaces focus hono-middleware @hono/oidc-auth - run: yarn workspace @hono/oidc-auth build - run: yarn workspace @hono/oidc-auth publint + - run: yarn eslint packages/oidc-auth - run: yarn test --coverage --project @hono/oidc-auth - uses: codecov/codecov-action@v5 with: diff --git a/.github/workflows/ci-otel.yml b/.github/workflows/ci-otel.yml index 92b8cf47..46339fb5 100644 --- a/.github/workflows/ci-otel.yml +++ b/.github/workflows/ci-otel.yml @@ -20,6 +20,7 @@ jobs: - run: yarn workspaces focus hono-middleware @hono/otel - run: yarn workspace @hono/otel build - run: yarn workspace @hono/otel publint + - run: yarn eslint packages/otel - run: yarn test --coverage --project @hono/otel - uses: codecov/codecov-action@v5 with: diff --git a/.github/workflows/ci-prometheus.yml b/.github/workflows/ci-prometheus.yml index 3d8dcbbd..98c8eb63 100644 --- a/.github/workflows/ci-prometheus.yml +++ b/.github/workflows/ci-prometheus.yml @@ -20,6 +20,7 @@ jobs: - run: yarn workspaces focus hono-middleware @hono/prometheus - run: yarn workspace @hono/prometheus build - run: yarn workspace @hono/prometheus publint + - run: yarn eslint packages/prometheus - run: yarn test --coverage --project @hono/prometheus - uses: codecov/codecov-action@v5 with: diff --git a/.github/workflows/ci-qwik-city.yml b/.github/workflows/ci-qwik-city.yml index 72cf0247..b371a400 100644 --- a/.github/workflows/ci-qwik-city.yml +++ b/.github/workflows/ci-qwik-city.yml @@ -20,6 +20,7 @@ jobs: - run: yarn workspaces focus hono-middleware @hono/qwik-city - run: yarn workspace @hono/qwik-city build - run: yarn workspace @hono/qwik-city publint + - run: yarn eslint packages/qwik-city # - run: yarn test --coverage --project @hono/qwik-city # - uses: codecov/codecov-action@v5 # with: diff --git a/.github/workflows/ci-react-compat.yml b/.github/workflows/ci-react-compat.yml index fd9325f8..f3fcb778 100644 --- a/.github/workflows/ci-react-compat.yml +++ b/.github/workflows/ci-react-compat.yml @@ -20,6 +20,7 @@ jobs: - run: yarn workspaces focus hono-middleware @hono/react-compat - run: yarn workspace @hono/react-compat build - run: yarn workspace @hono/react-compat publint + - run: yarn eslint packages/react-compat # - run: yarn test --coverage --project @hono/react-compat # - uses: codecov/codecov-action@v5 # with: diff --git a/.github/workflows/ci-react-renderer.yml b/.github/workflows/ci-react-renderer.yml index 658ec81a..470637a0 100644 --- a/.github/workflows/ci-react-renderer.yml +++ b/.github/workflows/ci-react-renderer.yml @@ -20,6 +20,7 @@ jobs: - run: yarn workspaces focus hono-middleware @hono/react-renderer - run: yarn workspace @hono/react-renderer build - run: yarn workspace @hono/react-renderer publint + - run: yarn eslint packages/react-renderer - run: yarn test --coverage --project @hono/react-renderer - uses: codecov/codecov-action@v5 with: diff --git a/.github/workflows/ci-sentry.yml b/.github/workflows/ci-sentry.yml index 588eaf35..5f7644ac 100644 --- a/.github/workflows/ci-sentry.yml +++ b/.github/workflows/ci-sentry.yml @@ -20,6 +20,7 @@ jobs: - run: yarn workspaces focus hono-middleware @hono/sentry - run: yarn workspace @hono/sentry build - run: yarn workspace @hono/sentry publint + - run: yarn eslint packages/sentry - run: yarn test --coverage --project @hono/sentry - uses: codecov/codecov-action@v5 with: diff --git a/.github/workflows/ci-standard-validator.yml b/.github/workflows/ci-standard-validator.yml index a082b561..b00310f1 100644 --- a/.github/workflows/ci-standard-validator.yml +++ b/.github/workflows/ci-standard-validator.yml @@ -20,6 +20,7 @@ jobs: - run: yarn workspaces focus hono-middleware @hono/standard-validator - run: yarn workspace @hono/standard-validator build - run: yarn workspace @hono/standard-validator publint + - run: yarn eslint packages/standard-validator - run: yarn test --coverage --project @hono/standard-validator - uses: codecov/codecov-action@v5 with: diff --git a/.github/workflows/ci-swagger-editor.yml b/.github/workflows/ci-swagger-editor.yml index 8355b5b6..1c798b03 100644 --- a/.github/workflows/ci-swagger-editor.yml +++ b/.github/workflows/ci-swagger-editor.yml @@ -20,6 +20,7 @@ jobs: - run: yarn workspaces focus hono-middleware @hono/swagger-editor - run: yarn workspace @hono/swagger-editor build - run: yarn workspace @hono/swagger-editor publint + - run: yarn eslint packages/swagger-editor - run: yarn test --coverage --project @hono/swagger-editor - uses: codecov/codecov-action@v5 with: diff --git a/.github/workflows/ci-swagger-ui.yml b/.github/workflows/ci-swagger-ui.yml index 2673e3a2..5b77f8c9 100644 --- a/.github/workflows/ci-swagger-ui.yml +++ b/.github/workflows/ci-swagger-ui.yml @@ -20,6 +20,7 @@ jobs: - run: yarn workspaces focus hono-middleware @hono/swagger-ui - run: yarn workspace @hono/swagger-ui build - run: yarn workspace @hono/swagger-ui publint + - run: yarn eslint packages/swagger-ui - run: yarn test --coverage --project @hono/swagger-ui - uses: codecov/codecov-action@v5 with: diff --git a/.github/workflows/ci-trpc-server.yml b/.github/workflows/ci-trpc-server.yml index 3cd0ebf8..6e6870a9 100644 --- a/.github/workflows/ci-trpc-server.yml +++ b/.github/workflows/ci-trpc-server.yml @@ -20,6 +20,7 @@ jobs: - run: yarn workspaces focus hono-middleware @hono/trpc-server - run: yarn workspace @hono/trpc-server build - run: yarn workspace @hono/trpc-server publint + - run: yarn eslint packages/trpc-server - run: yarn test --coverage --project @hono/trpc-server - uses: codecov/codecov-action@v5 with: diff --git a/.github/workflows/ci-tsyringe.yml b/.github/workflows/ci-tsyringe.yml index ce5baf1b..67c88e09 100644 --- a/.github/workflows/ci-tsyringe.yml +++ b/.github/workflows/ci-tsyringe.yml @@ -20,6 +20,7 @@ jobs: - run: yarn workspaces focus hono-middleware @hono/tsyringe - run: yarn workspace @hono/tsyringe build - run: yarn workspace @hono/tsyringe publint + - run: yarn eslint packages/tsyringe - run: yarn test --coverage --project @hono/tsyringe - uses: codecov/codecov-action@v5 with: diff --git a/.github/workflows/ci-typebox-validator.yml b/.github/workflows/ci-typebox-validator.yml index b59e43dc..cda0c949 100644 --- a/.github/workflows/ci-typebox-validator.yml +++ b/.github/workflows/ci-typebox-validator.yml @@ -20,6 +20,7 @@ jobs: - run: yarn workspaces focus hono-middleware @hono/typebox-validator - run: yarn workspace @hono/typebox-validator build - run: yarn workspace @hono/typebox-validator publint + - run: yarn eslint packages/typebox-validator - run: yarn test --coverage --project @hono/typebox-validator - uses: codecov/codecov-action@v5 with: diff --git a/.github/workflows/ci-typia-validator.yml b/.github/workflows/ci-typia-validator.yml index 19a6f2bf..e31c7e2a 100644 --- a/.github/workflows/ci-typia-validator.yml +++ b/.github/workflows/ci-typia-validator.yml @@ -20,6 +20,7 @@ jobs: - run: yarn workspaces focus hono-middleware @hono/typia-validator - run: yarn workspace @hono/typia-validator build - run: yarn workspace @hono/typia-validator publint + - run: yarn eslint packages/typia-validator - run: yarn test --coverage --project @hono/typia-validator - uses: codecov/codecov-action@v5 with: diff --git a/.github/workflows/ci-valibot-validator.yml b/.github/workflows/ci-valibot-validator.yml index 3ba6d5fe..a7213f3a 100644 --- a/.github/workflows/ci-valibot-validator.yml +++ b/.github/workflows/ci-valibot-validator.yml @@ -20,6 +20,7 @@ jobs: - run: yarn workspaces focus hono-middleware @hono/valibot-validator - run: yarn workspace @hono/valibot-validator build - run: yarn workspace @hono/valibot-validator publint + - run: yarn eslint packages/valibot-validator - run: yarn test --coverage --project @hono/valibot-validator - uses: codecov/codecov-action@v5 with: diff --git a/.github/workflows/ci-zod-openapi.yml b/.github/workflows/ci-zod-openapi.yml index ffe2dc05..b0c84117 100644 --- a/.github/workflows/ci-zod-openapi.yml +++ b/.github/workflows/ci-zod-openapi.yml @@ -20,6 +20,7 @@ jobs: - run: yarn workspaces focus hono-middleware @hono/zod-openapi - run: yarn workspace @hono/zod-openapi build - run: yarn workspace @hono/zod-openapi publint + - run: yarn eslint packages/zod-openapi - run: yarn test --coverage --project @hono/zod-openapi - uses: codecov/codecov-action@v5 with: diff --git a/.github/workflows/ci-zod-validator.yml b/.github/workflows/ci-zod-validator.yml index 5823991c..66eae5db 100644 --- a/.github/workflows/ci-zod-validator.yml +++ b/.github/workflows/ci-zod-validator.yml @@ -20,6 +20,7 @@ jobs: - run: yarn workspaces focus hono-middleware @hono/zod-validator - run: yarn workspace @hono/zod-validator build - run: yarn workspace @hono/zod-validator publint + - run: yarn eslint packages/zod-validator - run: yarn test --coverage --project @hono/zod-validator - uses: codecov/codecov-action@v5 with: diff --git a/eslint.config.mjs b/eslint.config.mjs index 7897a883..156bab4e 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -1,5 +1,5 @@ +import baseConfig from '@hono/eslint-config' import { defineConfig, globalIgnores } from 'eslint/config' -import baseConfig from './packages/eslint-config/index.js' export default defineConfig(globalIgnores(['.yarn', '**/dist']), { extends: baseConfig, diff --git a/package.json b/package.json index 0d792a25..6137820f 100644 --- a/package.json +++ b/package.json @@ -62,6 +62,7 @@ "@changesets/cli": "^2.26.0", "@cloudflare/vitest-pool-workers": "^0.7.8", "@cloudflare/workers-types": "^4.20230307.0", + "@hono/eslint-config": "workspace:*", "@ryoppippi/unplugin-typia": "^1.2.0", "@types/node": "^20.14.8", "@typescript-eslint/eslint-plugin": "^8.7.0", diff --git a/yarn.lock b/yarn.lock index ce6e9751..34d96ca8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1983,7 +1983,7 @@ __metadata: languageName: unknown linkType: soft -"@hono/eslint-config@workspace:packages/eslint-config": +"@hono/eslint-config@workspace:*, @hono/eslint-config@workspace:packages/eslint-config": version: 0.0.0-use.local resolution: "@hono/eslint-config@workspace:packages/eslint-config" dependencies: @@ -8413,6 +8413,7 @@ __metadata: "@changesets/cli": "npm:^2.26.0" "@cloudflare/vitest-pool-workers": "npm:^0.7.8" "@cloudflare/workers-types": "npm:^4.20230307.0" + "@hono/eslint-config": "workspace:*" "@ryoppippi/unplugin-typia": "npm:^1.2.0" "@types/node": "npm:^20.14.8" "@typescript-eslint/eslint-plugin": "npm:^8.7.0"