@terpjs/eslint-boundaries 0.33.0 → 0.34.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@terpjs/eslint-boundaries",
3
- "version": "0.33.0",
3
+ "version": "0.34.0",
4
4
  "type": "module",
5
5
  "description": "Terp frontend boundary rules (as data) + the ESLint adapter, over all app source under src/: no cross-module imports, no package internals, design-token-only styling (no style/className/stylesheets; the bootstrap alone loads the token pipeline), token-styled components for raw HTML tags, router-only in-app links, generated-client-only, and browser XSS/navigation sink bans. Strict-only (no modes); governed opt-outs via terp-allow markers + the escape-hatch budget ratchet (terp-boundaries-budget).",
6
6
  "main": "./src/index.js",
package/src/index.test.js CHANGED
@@ -1,5 +1,6 @@
1
1
  import fs from "node:fs";
2
2
  import path from "node:path";
3
+ import { fileURLToPath } from "node:url";
3
4
 
4
5
  import { ESLint } from "eslint";
5
6
  import { afterAll, describe, expect, it } from "vitest";
@@ -595,8 +596,10 @@ describe("terpBoundaries", () => {
595
596
  it("lints the template's own bootstrap clean", async () => {
596
597
  // The allowance is exactly as wide as the bootstrap a generated app starts from: a
597
598
  // stylesheet the template adds is refused here before an app ever meets it.
599
+ // Found from this file rather than the cwd: the package's own run starts in the package,
600
+ // and the spec's reference-drift job runs this suite from the repository root.
598
601
  const template = fs.readFileSync(
599
- path.resolve("../../../template/project/frontend/src/main.tsx.jinja"),
602
+ fileURLToPath(new URL("../../../../template/project/frontend/src/main.tsx.jinja", import.meta.url)),
600
603
  "utf-8",
601
604
  );
602
605
  // Strip the Jinja tags and keep what they wrap, so every optional line is linted too;