@neralabs/rerail-pack-vue 0.1.1 → 0.1.3
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 +7 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -5,13 +5,15 @@ candidates under `candidates/rules/`: they have not passed the V1 rule validatio
|
|
|
5
5
|
([nera-rule-validation](https://github.com/neralabs/nera-rule-validation)), so `pack.json` lists no rules, the pack
|
|
6
6
|
ships none and is never recommended, and a candidate is scored and reported but never gates a check. A port moves to
|
|
7
7
|
`rules/` and `pack.json` once it passes the gates. Each
|
|
8
|
-
reads the component's tree-sitter-vue tree and the ECMAScript program its scripts and template
|
|
8
|
+
reads the component's two documents: its tree-sitter-vue tree, and the ECMAScript program its scripts and template
|
|
9
|
+
expressions make (the `script-block` program a clause reads with `ast.embedded`, or reaches from a template node with
|
|
10
|
+
`embedded`; `host` leads back from a program node to the template node it stands for). Each port
|
|
9
11
|
is scored against eslint-plugin-vue's own findings on its RuleTester cases, on cases Rerail wrote for inputs a port once
|
|
10
12
|
misread (`fixtures/<rule>/rerail-*.vue`, listed in `upstream/eslint-plugin-vue/UPSTREAM.md`) and on three pinned corpora
|
|
11
13
|
(element-plus, vue-vben-admin, hoppscotch), through the engine's production workspace path. Every port agrees with
|
|
12
|
-
eslint-plugin-vue on every case
|
|
13
|
-
|
|
14
|
-
|
|
14
|
+
eslint-plugin-vue on every fixture case: 1,106 findings on the 773 fixture files, with no false positive or false
|
|
15
|
+
negative and no declared divergence. On the corpora (2,111 files) the ports agreed on all 221 findings when last scored,
|
|
16
|
+
before they were ported to the two documents.
|
|
15
17
|
|
|
16
18
|
It is checked by:
|
|
17
19
|
|
|
@@ -27,6 +29,6 @@ npx vitest run test/engine/catalog/packs.test.ts -t "pack vue"
|
|
|
27
29
|
| `pack.json` | The pack (`rerail.rule-pack/v1`): its match definition, and no rules until a port passes |
|
|
28
30
|
| `candidates/rules/` | The 24 candidate code-rule documents (`rerail.policy/v1`), scored but never shipped |
|
|
29
31
|
| `conformance.json` | Each port's upstream rule, how findings compare, and the capabilities it exercises; the pinned parser stack and the pinned corpora |
|
|
30
|
-
| `divergences.json` | Declared disagreements with eslint-plugin-vue (
|
|
32
|
+
| `divergences.json` | Declared disagreements with eslint-plugin-vue (none) |
|
|
31
33
|
| `upstream/eslint-plugin-vue/` | The copied RuleTester cases (`fixtures/`), the cases Rerail wrote (`authored.mjs`, written as `fixtures/<rule>/rerail-*.vue` and listed in `UPSTREAM.md`), each case's fate (`cases.json`) and the recordings (`fixtures.expected.json`, `corpus-<name>.expected.json`) |
|
|
32
34
|
| `licenses/eslint-plugin-vue/` | eslint-plugin-vue's licence and `UPSTREAM.md`, listing every copied file |
|