@terpjs/eslint-boundaries 0.33.0 → 0.35.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 +2 -2
- package/src/index.test.js +4 -1
- package/src/spec.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@terpjs/eslint-boundaries",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.35.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",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"typescript-eslint": "^8.71.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@terpjs/spec": "0.
|
|
28
|
+
"@terpjs/spec": "0.40.0",
|
|
29
29
|
"eslint": "^10.12.0",
|
|
30
30
|
"vitest": "^5.0.3"
|
|
31
31
|
},
|
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
|
-
|
|
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;
|
package/src/spec.js
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
* NOT by this package's own suite, which certification runs against candidate spec releases
|
|
21
21
|
* whose version is allowed to be newer).
|
|
22
22
|
*/
|
|
23
|
-
export const SPEC_VERSION = "0.
|
|
23
|
+
export const SPEC_VERSION = "0.40.0";
|
|
24
24
|
|
|
25
25
|
/** Every script extension the bundler loads as app source (see `appFiles`). */
|
|
26
26
|
const SOURCE_EXTENSIONS = ["ts", "tsx", "mts", "cts", "js", "jsx", "mjs", "cjs"];
|