lintpage 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.
- package/README.md +32 -31
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# lintpage
|
|
2
2
|
|
|
3
|
-
CLI tool that audits websites for SEO, accessibility, and performance issues. Catch broken meta tags, missing alt text, slow pages, and security problems before they hurt your rankings.
|
|
3
|
+
CLI tool that audits websites for SEO, accessibility, and performance issues. Catch noindex tag, broken meta tags, missing alt text, slow pages, and security problems before they hurt your rankings.
|
|
4
4
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
@@ -43,19 +43,20 @@ Score: 85/100 Status: PASS
|
|
|
43
43
|
```
|
|
44
44
|
|
|
45
45
|
Exit codes:
|
|
46
|
+
|
|
46
47
|
- `0` — all checks pass
|
|
47
48
|
- `1` — critical issues found (or warnings with `--fail-on-warning`)
|
|
48
49
|
- `2` — runtime error
|
|
49
50
|
|
|
50
51
|
## Options
|
|
51
52
|
|
|
52
|
-
| Flag
|
|
53
|
-
|
|
53
|
+
| Flag | Description |
|
|
54
|
+
| ------------------- | ------------------------------------------------- |
|
|
54
55
|
| `--format <format>` | Output format: `text` (default), `json`, `github` |
|
|
55
|
-
| `--fail-on-warning` | Exit 1 on warnings, not just criticals
|
|
56
|
-
| `--quiet`
|
|
57
|
-
| `--report`
|
|
58
|
-
| `--pro <key>`
|
|
56
|
+
| `--fail-on-warning` | Exit 1 on warnings, not just criticals |
|
|
57
|
+
| `--quiet` | Minimal output (counts only) |
|
|
58
|
+
| `--report` | Send results to the LintPage dashboard |
|
|
59
|
+
| `--pro <key>` | Enable pro rules with a license key |
|
|
59
60
|
|
|
60
61
|
## Rules
|
|
61
62
|
|
|
@@ -63,31 +64,31 @@ LintPage checks **13 rules** out of the box across four categories:
|
|
|
63
64
|
|
|
64
65
|
### SEO
|
|
65
66
|
|
|
66
|
-
| Rule
|
|
67
|
-
|
|
68
|
-
| `title`
|
|
69
|
-
| `meta-description`
|
|
70
|
-
| `heading-structure` | WARNING
|
|
71
|
-
| `canonical-url`
|
|
72
|
-
| `robots-noindex`
|
|
73
|
-
| `og-title`
|
|
74
|
-
| `og-description`
|
|
75
|
-
| `og-image`
|
|
76
|
-
| `og-url`
|
|
77
|
-
| `twitter-card`
|
|
67
|
+
| Rule | Severity | What it checks |
|
|
68
|
+
| ------------------- | -------- | ------------------------------------------- |
|
|
69
|
+
| `title` | CRITICAL | Title tag presence and length (30–60 chars) |
|
|
70
|
+
| `meta-description` | WARNING | Meta description presence and length |
|
|
71
|
+
| `heading-structure` | WARNING | Single H1, valid heading hierarchy |
|
|
72
|
+
| `canonical-url` | WARNING | Canonical URL tag |
|
|
73
|
+
| `robots-noindex` | INFO | Robots noindex directives |
|
|
74
|
+
| `og-title` | WARNING | OpenGraph title |
|
|
75
|
+
| `og-description` | WARNING | OpenGraph description |
|
|
76
|
+
| `og-image` | WARNING | OpenGraph image |
|
|
77
|
+
| `og-url` | WARNING | OpenGraph URL |
|
|
78
|
+
| `twitter-card` | WARNING | Twitter Card meta tags |
|
|
78
79
|
|
|
79
80
|
### Accessibility
|
|
80
81
|
|
|
81
|
-
| Rule
|
|
82
|
-
|
|
82
|
+
| Rule | Severity | What it checks |
|
|
83
|
+
| ----------- | -------- | ---------------------------- |
|
|
83
84
|
| `html-lang` | CRITICAL | `lang` attribute on `<html>` |
|
|
84
|
-
| `viewport`
|
|
85
|
+
| `viewport` | WARNING | Viewport meta tag |
|
|
85
86
|
|
|
86
87
|
### Pre-Launch
|
|
87
88
|
|
|
88
|
-
| Rule
|
|
89
|
-
|
|
90
|
-
| `favicon` | WARNING
|
|
89
|
+
| Rule | Severity | What it checks |
|
|
90
|
+
| --------- | -------- | ---------------- |
|
|
91
|
+
| `favicon` | WARNING | Favicon presence |
|
|
91
92
|
|
|
92
93
|
### Pro Rules
|
|
93
94
|
|
|
@@ -103,12 +104,12 @@ With a license key (`--pro <key>` or `LINTPAGE_PRO_KEY` env var), you get **32 a
|
|
|
103
104
|
|
|
104
105
|
Each page gets a score out of 100, weighted by category:
|
|
105
106
|
|
|
106
|
-
| Category
|
|
107
|
-
|
|
108
|
-
| Pre-Launch
|
|
109
|
-
| SEO
|
|
110
|
-
| Accessibility | 20
|
|
111
|
-
| Performance
|
|
107
|
+
| Category | Weight |
|
|
108
|
+
| ------------- | ------ |
|
|
109
|
+
| Pre-Launch | 30 |
|
|
110
|
+
| SEO | 35 |
|
|
111
|
+
| Accessibility | 20 |
|
|
112
|
+
| Performance | 15 |
|
|
112
113
|
|
|
113
114
|
Severity deductions per issue: CRITICAL = −30%, WARNING = −5%, INFO = −1%.
|
|
114
115
|
|