equall-cli 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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2026 Bureau61
3
+ Copyright (c) 2026 Kevin Delval
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -11,17 +11,38 @@ equall scan .
11
11
  ```
12
12
  ◆ EQUALL — Accessibility Score
13
13
 
14
- 58 ~A WCAG 2.2
14
+ 56 ~A WCAG 2.2
15
15
 
16
16
  POUR Breakdown
17
- P Perceivable ███████████████████░ 97
18
- O Operable █████████░░░░░░░░░░░ 46
17
+ P Perceivable ██████████████████░░ 89
18
+ O Operable ███████████████░░░░░ 76
19
19
  U Understandable ░░░░░░░░░░░░░░░░░░░░ n/a
20
- R Robust ██████████████████░░ 91
20
+ R Robust █████████████████░░░ 85
21
21
 
22
22
  Summary
23
- 33 files scanned · 18 WCAG violations · 5 best-practice issues
24
- 2 critical 2 serious 19 moderate 0 minor
23
+ 33 files scanned · 15 WCAG violations · 19 best-practice issues
24
+ 2 critical 11 serious 19 moderate 0 minor
25
+ 2 issues ignored via equall-ignore
26
+ Score 56/100 · 18/30 Level A criteria checked (60%) · 5 failed
27
+ 29/57 Level AA criteria checked (51%) · 6 failed
28
+
29
+ ⓘ You're failing 5 Level A criteria (1.3.1, 2.1.1, 2.4.2, 2.4.4, 4.1.2).
30
+ Level A is the legal minimum — fix these first.
31
+
32
+ Scanners: axe-core@4.11.1 (23 issues), eslint-jsx-a11y@6.10.2 (13 issues)
33
+ Completed in 0.8s
34
+ ```
35
+
36
+ ## Install
37
+
38
+ ```bash
39
+ npm install -g equall-cli
40
+ ```
41
+
42
+ Or run directly with npx:
43
+
44
+ ```bash
45
+ npx equall scan .
25
46
  ```
26
47
 
27
48
  ## Why Equall?
@@ -90,10 +111,44 @@ The POUR metrics (Perceivable, Operable, Understandable, Robust) strictly follow
90
111
  ### Conformance Level
91
112
  Conformance (A / AA / AAA) is evaluated strictly against your `--level` target. If you target `AA`, any `AAA` rules incidentally flagged by the scanners will not downgrade your conformance status.
92
113
 
114
+ ## Ignoring issues
115
+
116
+ Some issues are false positives (e.g. an orphan `<li>` in a component that's always rendered inside a `<ul>`). Suppress them with inline comments:
117
+
118
+ ```tsx
119
+ // equall-ignore-next-line
120
+ <li>{item.name}</li>
121
+
122
+ // equall-ignore-next-line jsx-a11y/alt-text
123
+ <img src={logo} />
124
+
125
+ {/* equall-ignore-next-line */}
126
+ <div onClick={handler}>...</div>
127
+ ```
128
+
129
+ ```html
130
+ <!-- equall-ignore-next-line -->
131
+ <img src="decorative.png" />
132
+ ```
133
+
134
+ Add `// equall-ignore-file` in the first 5 lines to ignore an entire file.
135
+
136
+ Or use the CLI to inject/manage comments without opening the file:
137
+
138
+ ```bash
139
+ equall ignore src/Modal.tsx:89 # ignore all rules at line 89
140
+ equall ignore src/Modal.tsx:89 jsx-a11y/alt-text # ignore a specific rule
141
+ equall ignore . # list all ignores
142
+ equall ignore --remove src/Modal.tsx:89 # remove an ignore
143
+ equall ignore --clear # remove all ignores
144
+ ```
145
+
146
+ Ignored issues are excluded from the score. Use `equall scan . -i` to show them, or `--json` to get them with `"ignored": true`.
147
+
93
148
  ## Programmatic API
94
149
 
95
150
  ```typescript
96
- import { runScan } from 'equall'
151
+ import { runScan } from 'equall-cli'
97
152
 
98
153
  const result = await runScan({
99
154
  path: './my-project',
@@ -112,6 +167,10 @@ console.log(result.issues.length) // 12
112
167
  - `1` — score < 50 (useful for CI gates)
113
168
  - `2` — scan error
114
169
 
170
+ ## Contributing
171
+
172
+ Issues and PRs welcome — https://github.com/GotaBird/equall/issues
173
+
115
174
  ## License
116
175
 
117
176
  MIT