@starci/eslint-canon-be 3.23.3 → 3.24.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.24.0 - 2026-11-13
4
+
5
+ - Changed (PROJECT-LINT-3, R381): `starciBeConfig` and `starciBePackagesConfig` load the lint rules of the project's extension (`ext/manifest.json`, `ext/lint/`) through `extEslintConfigs` of `@starci/hfs` 6.9.0: one block per rule, over the files its `appliesTo` names inside the config (the be side's own folder, `packages/` for the root packages), under the plugin `project-ext`. A refused extension throws `HFS_EXT_INVALID`. Rule packs (hfs.json `rulePacks`) are gone. Requires `@starci/hfs` `~6.9.0`. Spec `src/project-ext.spec.ts`.
6
+
3
7
  ## 3.23.3 - 2026-11-12
4
8
 
5
9
  - Added: `cli-client-boundary` (R398 `BE_CLI_CLIENT_BOUNDARY`): a client cli (slots `be.app.client-cli`, `be.client-cli`) imports no domain, events, queues or projections module, nothing of the database capability or of a persistence folder, and no `typeorm`, `@nestjs/typeorm` or `pg`.
package/dist/index.js CHANGED
@@ -16,7 +16,7 @@
16
16
  * every conversation about the failure. Aliasing one here to match a target's older spelling would
17
17
  * leave two names for one rule and no way to tell which a message came from.
18
18
  */
19
- import { packEslintConfigs } from "@starci/hfs/runtime/scripts/lib/rule-packs.mjs";
19
+ import { extEslintConfigs } from "@starci/hfs/runtime/scripts/lib/project-ext.mjs";
20
20
  import { buildBeConfig, buildBePackagesConfig } from "./lib/config.js";
21
21
  import { pluginForEdition } from "./lib/edition.js";
22
22
  import { recommended as aiGatewayRecommended, rules as aiGatewayRules } from "./ai-gateway.js";
@@ -183,17 +183,17 @@ export default plugin;
183
183
  */
184
184
  export const starciBeConfig = async ({ hfs }) => [
185
185
  ...(await buildBeConfig({ hfs, plugin: pluginForEdition({ plugin, hfs }), recommended })),
186
- ...withPackRules(hfs, "be"),
186
+ ...withExtRules(hfs, "be"),
187
187
  ];
188
188
  /**
189
- * The ESLint rules of the app's rule packs (hfs.json `rulePacks`, contexts/project/lint.md PROJECT-LINT-3) for one scope: the one sanctioned way an app adds
190
- * a lint law, loaded by this factory so no tool config of the app defines a rule. A refused pack throws (HFS_RULE_PACK_INVALID): a lint run never guesses.
189
+ * The lint rules of the project's extension (ext/manifest.json and ext/lint/, contexts/project/lint.md PROJECT-LINT-3) for one scope: the one sanctioned way a
190
+ * project adds a lint law, loaded by this factory so no tool config of the app defines a rule. A refused extension throws (HFS_EXT_INVALID): a lint run never guesses.
191
191
  *
192
192
  * @param hfs - The HFS view the config was built for (its repoRoot is the folder of the eslint.config.mjs).
193
193
  * @param side - The scope: the be side, or the root packages.
194
- * @returns The pack blocks, none when the app declares no pack.
194
+ * @returns The extension's blocks, none when the app has no ext/ folder or no lint rule of it reaches the scope.
195
195
  */
196
- const withPackRules = (hfs, side) => hfs === null || hfs === undefined ? [] : packEslintConfigs(hfs.repoRoot, side, side === "packages" ? ["packages/*/src/**/*.{ts,tsx,mts,cts}"] : undefined);
196
+ const withExtRules = (hfs, side) => hfs === null || hfs === undefined ? [] : extEslintConfigs(hfs.repoRoot, side);
197
197
  /** The levels a package is judged by: every rule of the be side but the project-graph rules, which judge the import graph of a side folder (the packages are not part of it). */
198
198
  const packageRecommended = Object.fromEntries(Object.entries(recommended).filter(([name]) => !(name in projectGraphRecommended)));
199
199
  /**
@@ -205,7 +205,7 @@ const packageRecommended = Object.fromEntries(Object.entries(recommended).filter
205
205
  */
206
206
  export const starciBePackagesConfig = async ({ hfs }) => [
207
207
  ...(await buildBePackagesConfig({ hfs, plugin: pluginForEdition({ plugin, hfs }), recommended: packageRecommended })),
208
- ...withPackRules(hfs, "packages"),
208
+ ...withExtRules(hfs, "packages"),
209
209
  ];
210
210
  export { linterOptions } from "./lib/config.js";
211
211
  export { loadHfs, loadPackagesHfs } from "./lib/hfs.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@starci/eslint-canon-be",
3
- "version": "3.23.3",
3
+ "version": "3.24.0",
4
4
  "description": "The StarCi back-end lint canon: every rule its laws publish, gathered as one flat-config plugin.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -40,7 +40,7 @@
40
40
  "node": ">=22.13.0"
41
41
  },
42
42
  "peerDependencies": {
43
- "@starci/hfs": "~6.8.0",
43
+ "@starci/hfs": "~6.9.0",
44
44
  "eslint": ">=9",
45
45
  "typescript": ">=5.9"
46
46
  },
@@ -74,6 +74,6 @@
74
74
  "typescript": "^6.0.3"
75
75
  },
76
76
  "types": "./dist/index.d.ts",
77
- "gitHead": "bf397f2b69c82c3014caeb2f71158c91624ecf47",
78
- "starciSource": "7f9bdbb61e27765ad89d6c933b87e5a53635d5145420e6cbdf01616c6513835e"
77
+ "gitHead": "85b3f8e7f6c3e4d1e7eb6f0ce3d9e98bf985daf7",
78
+ "starciSource": "9ffd3cc5fc4f9b1f8fe749f27e0cadc3d7ae3ef29e8099d5571af387b9b1021e"
79
79
  }