@yasainet/eslint 0.0.35 → 0.0.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,14 +1,15 @@
1
1
  # @yasainet/eslint
2
2
 
3
- Shared ESLint configuration for Next.js, Node.js and Deno.
3
+ Shared ESLint configuration for Next.js, Hono, Node.js and Deno.
4
4
 
5
5
  ## Entry Points
6
6
 
7
- | Entry | Feature Root | Description |
8
- | ----------------------- | ------------------------------ | ----------------------- |
9
- | `@yasainet/eslint/next` | `src/features/` | Common rules + Next.js |
10
- | `@yasainet/eslint/node` | `scripts/features/` | Common rules only (WIP) |
11
- | `@yasainet/eslint/deno` | `supabase/functions/features/` | Common rules only (WIP) |
7
+ | Entry | Feature Root | Entry Points | Description |
8
+ | ----------------------- | ------------------------------ | ----------------------- | ----------------------------- |
9
+ | `@yasainet/eslint/next` | `src/features/` | - | Common rules + Next.js |
10
+ | `@yasainet/eslint/hono` | `src/features/` | - | Common rules (web server) |
11
+ | `@yasainet/eslint/node` | `scripts/features/` | `scripts/commands/*.ts` | Common rules (CLI scripts) |
12
+ | `@yasainet/eslint/deno` | `supabase/functions/features/` | - | Common rules (Edge Functions) |
12
13
 
13
14
  ## Directory Structure
14
15
 
@@ -16,7 +17,8 @@ Shared ESLint configuration for Next.js, Node.js and Deno.
16
17
  src/
17
18
  ├── common/ # Shared rules for all environments
18
19
  ├── next/ # Next.js-specific rules (hooks, components, directives)
19
- ├── node/ # Node.js entry point (common rules only)
20
+ ├── hono/ # Hono web server (src/features)
21
+ ├── node/ # Node.js CLI scripts (scripts/features, scripts/commands)
20
22
  └── deno/ # Deno entry point (entry-point boundary, _utils boundary, _lib boundary)
21
23
  ```
22
24
 
@@ -102,6 +104,19 @@ export default defineConfig([
102
104
  ]);
103
105
  ```
104
106
 
107
+ ### Hono
108
+
109
+ ```sh
110
+ npm install -D @yasainet/eslint eslint typescript-eslint
111
+ ```
112
+
113
+ ```js
114
+ // eslint.config.mjs
115
+ import { eslintConfig } from "@yasainet/eslint/hono";
116
+
117
+ export default [...eslintConfig];
118
+ ```
119
+
105
120
  ### Node.js
106
121
 
107
122
  ```sh
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yasainet/eslint",
3
- "version": "0.0.35",
3
+ "version": "0.0.36",
4
4
  "description": "ESLint",
5
5
  "type": "module",
6
6
  "exports": {
@@ -12,6 +12,10 @@
12
12
  "types": "./src/node/index.d.mts",
13
13
  "default": "./src/node/index.mjs"
14
14
  },
15
+ "./hono": {
16
+ "types": "./src/hono/index.d.mts",
17
+ "default": "./src/hono/index.mjs"
18
+ },
15
19
  "./deno": {
16
20
  "types": "./src/deno/index.d.mts",
17
21
  "default": "./src/deno/index.mjs"
@@ -0,0 +1,3 @@
1
+ import type { Linter } from "eslint";
2
+
3
+ export declare const eslintConfig: Linter.Config[];
@@ -0,0 +1,6 @@
1
+ import { createCommonConfigs } from "../common/index.mjs";
2
+
3
+ /** Hono ESLint flat config entry point. */
4
+ export const eslintConfig = [
5
+ ...createCommonConfigs("src/features", { banAliasImports: true }),
6
+ ];