@pagefront/lint-commerce 0.5.0 → 0.5.1
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 +22 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -24,6 +24,28 @@ failure. Both commerce page types are handled: product sheets and
|
|
|
24
24
|
Commerce Organization Sheets each validate against their own schema and
|
|
25
25
|
lint with their own catalogue, dispatched by sheet type.
|
|
26
26
|
|
|
27
|
+
## Catalogue
|
|
28
|
+
|
|
29
|
+
Catalogue 0.8.0, targeting format 0.9: 34 product rules (`PDP-E-001` to
|
|
30
|
+
`PDP-E-004`, `PDP-W-001` to `PDP-W-029`, `PDP-I-001`) and 7 organization
|
|
31
|
+
rules (`ORG-E-001`, `ORG-W-001` to `ORG-W-006`), each defined in
|
|
32
|
+
[`rules.md`](https://github.com/themachineweb/pagefront/blob/main/commerce/spec/rules.md)
|
|
33
|
+
with its target, check, message and remediation. Every report carries the
|
|
34
|
+
`catalogue_version` it was produced with.
|
|
35
|
+
|
|
36
|
+
Added in 0.5.0 (catalogue 0.8.0), from the product spec's
|
|
37
|
+
["Tax inclusion"](https://themachineweb.org/pagefront/spec/commerce/product#tax-inclusion)
|
|
38
|
+
section:
|
|
39
|
+
|
|
40
|
+
- `PDP-W-028` — an Offer states a price but no `priceSpecification` entry
|
|
41
|
+
carries a boolean `valueAddedTaxIncluded`
|
|
42
|
+
- `PDP-W-029` — an Offer states a price but declares neither `areaServed`
|
|
43
|
+
nor `eligibleRegion`
|
|
44
|
+
- `PDP-E-004` — a `priceSpecification` entry mirroring the Offer's price
|
|
45
|
+
states a different amount in the same currency
|
|
46
|
+
|
|
47
|
+
The two warnings exempt offers carrying `pagefront:priceOnRequest`.
|
|
48
|
+
|
|
27
49
|
## API
|
|
28
50
|
|
|
29
51
|
The public surface — everything importable from the package root, and
|
package/dist/version.d.ts
CHANGED
package/dist/version.js
CHANGED
package/package.json
CHANGED