@yasainet/eslint 0.0.36 → 0.0.38

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,13 +1,12 @@
1
1
  # @yasainet/eslint
2
2
 
3
- Shared ESLint configuration for Next.js, Hono, Node.js and Deno.
3
+ Shared ESLint configuration for Next.js, Node.js and Deno.
4
4
 
5
5
  ## Entry Points
6
6
 
7
7
  | Entry | Feature Root | Entry Points | Description |
8
8
  | ----------------------- | ------------------------------ | ----------------------- | ----------------------------- |
9
9
  | `@yasainet/eslint/next` | `src/features/` | - | Common rules + Next.js |
10
- | `@yasainet/eslint/hono` | `src/features/` | - | Common rules (web server) |
11
10
  | `@yasainet/eslint/node` | `scripts/features/` | `scripts/commands/*.ts` | Common rules (CLI scripts) |
12
11
  | `@yasainet/eslint/deno` | `supabase/functions/features/` | - | Common rules (Edge Functions) |
13
12
 
@@ -17,7 +16,6 @@ Shared ESLint configuration for Next.js, Hono, Node.js and Deno.
17
16
  src/
18
17
  ├── common/ # Shared rules for all environments
19
18
  ├── next/ # Next.js-specific rules (hooks, components, directives)
20
- ├── hono/ # Hono web server (src/features)
21
19
  ├── node/ # Node.js CLI scripts (scripts/features, scripts/commands)
22
20
  └── deno/ # Deno entry point (entry-point boundary, _utils boundary, _lib boundary)
23
21
  ```
@@ -104,19 +102,6 @@ export default defineConfig([
104
102
  ]);
105
103
  ```
106
104
 
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
-
120
105
  ### Node.js
121
106
 
122
107
  ```sh
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yasainet/eslint",
3
- "version": "0.0.36",
3
+ "version": "0.0.38",
4
4
  "description": "ESLint",
5
5
  "type": "module",
6
6
  "exports": {
@@ -12,10 +12,6 @@
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
- },
19
15
  "./deno": {
20
16
  "types": "./src/deno/index.d.mts",
21
17
  "default": "./src/deno/index.mjs"
@@ -24,6 +24,10 @@ const LAYER_PATTERNS = {
24
24
  },
25
25
  ],
26
26
  actions: [
27
+ {
28
+ group: ["*/repositories/*", "*/repositories"],
29
+ message: "actions cannot import repositories (layer violation)",
30
+ },
27
31
  {
28
32
  group: ["*/hooks/*", "*/hooks"],
29
33
  message: "actions cannot import hooks (layer violation)",
@@ -1,3 +0,0 @@
1
- import type { Linter } from "eslint";
2
-
3
- export declare const eslintConfig: Linter.Config[];
@@ -1,6 +0,0 @@
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
- ];