@slip-stream-kit/eslint-plugin 0.41.0 → 0.43.0

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.
@@ -8,6 +8,8 @@ export interface Options {
8
8
  rootAlias?: string;
9
9
  /** Globs; the rule is skipped for matching files. */
10
10
  ignore?: string[];
11
+ /** Folders whose subfolders may not import each other (`commands/a` → `commands/b`). */
12
+ isolate?: string[];
11
13
  }
12
14
  export declare const DEFAULT_LAYERS: string[][];
13
15
  export declare const layerImports: Rule.RuleModule;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@slip-stream-kit/eslint-plugin",
3
3
  "type": "module",
4
- "version": "0.41.0",
4
+ "version": "0.43.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/ArthurSaenz/infra-kit.git",
@@ -41,7 +41,7 @@
41
41
  "eslint": ">=9"
42
42
  },
43
43
  "devDependencies": {
44
- "@slip-stream-kit/config": "0.41.0",
44
+ "@slip-stream-kit/config": "0.43.0",
45
45
  "@types/node": "^26.5.1",
46
46
  "@typescript-eslint/parser": "^8.70.0",
47
47
  "@wl/eslint-config": "0.1.0",
package/readme.md CHANGED
@@ -688,6 +688,12 @@ package, and test files (`__tests__/`, `*.test.*`, `*.spec.*`) are skipped: a te
688
688
  environment (global styles, providers) like an entry point and is not part of the runtime graph.
689
689
 
690
690
  Imports between features are left to `eslint-plugin-boundaries`; this rule only judges direction.
691
+ `isolate` adds one sibling rule for folders whose children are independent units — with
692
+ `isolate: ['commands']`, `src/commands/setup/**` may not import `src/commands/doctor/**`:
693
+
694
+ ```
695
+ `commands/setup` cannot import `src/commands/doctor/doctor` from its sibling `commands/doctor`: folders under `commands/` are isolated from each other. Move the shared code down into a lower layer, or pass it in from above.
696
+ ```
691
697
 
692
698
  ```js
693
699
  {
@@ -705,6 +711,7 @@ Imports between features are left to `eslint-plugin-boundaries`; this rule only
705
711
  | `allowTypeImports` | `boolean` | `true` | Whether type-only imports may point at a higher layer. |
706
712
  | `rootAlias` | `string` | `'#root'` | The alias that maps to `src/`. |
707
713
  | `ignore` | `string[]` | `[]` | Globs; the rule is skipped for matching files. |
714
+ | `isolate` | `string[]` | `[]` | Folders whose subfolders may not import each other. |
708
715
 
709
716
  ### `feature-public-api`
710
717