@lit-pigeon/lint 0.1.5 → 0.1.6

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.
Files changed (2) hide show
  1. package/README.md +7 -2
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -2,8 +2,9 @@
2
2
 
3
3
  Pre-flight QA for [Lit Pigeon](https://github.com/snxstudio/lit-pigeon)
4
4
  documents. Catches the mistakes that break emails in the wild: missing image
5
- alt text, low text/background contrast, links without an `href`, undefined
6
- merge tags, likely spam-trigger content, and empty blocks. An async pass adds
5
+ alt text, low button contrast, links without an absolute `http(s)`, `mailto`
6
+ or `tel` URL, malformed merge tags, preview text length, likely spam-trigger
7
+ content, and empty rows. An async pass adds
7
8
  network checks — total image weight and link reachability.
8
9
 
9
10
  ## Install
@@ -35,6 +36,10 @@ built-in rules are exported individually — `altTextRule`, `contrastRule`,
35
36
  `defaultRules` and `defaultAsyncRules` arrays. These checks are also exposed as
36
37
  `/lint` and `/lint/async` endpoints by [`@lit-pigeon/rest`](../rest).
37
38
 
39
+ Hero blocks have no alt text field, so `alt-text/missing` is always reported
40
+ for them; filter that rule for hero blocks if you gate sending on errors. See
41
+ [Server-side](../../docs/guide/server-side.md#lit-pigeonlint).
42
+
38
43
  Part of [Lit Pigeon](https://github.com/snxstudio/lit-pigeon) — open-source drag-and-drop email editor.
39
44
 
40
45
  ## License
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lit-pigeon/lint",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "Pre-flight QA for Lit Pigeon documents — alt text, contrast, link, merge-tag, spam-score, image-weight, and link-reachability checks.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -18,12 +18,12 @@
18
18
  "LICENSE"
19
19
  ],
20
20
  "dependencies": {
21
- "@lit-pigeon/core": "^0.3.1"
21
+ "@lit-pigeon/core": "^0.4.0"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@types/node": "^25.9.1",
25
25
  "typescript": "^5.5.0",
26
- "vitest": "^2.0.0"
26
+ "vitest": "^4.1.12"
27
27
  },
28
28
  "publishConfig": {
29
29
  "access": "public"