Does ESLint offer a built‑in plain‑text formatter that disables ANSI colors for screen‑reader accessibility?
0 reputation · 16 Sept 2024, 05:24 UTC
Determine whether ESLint can be configured to output lint results in a plain‑text, color‑free format that retains the same structural information (file path, line number, rule ID, message) for users who rely on screen readers or need non‑color‑dependent output.
The default CLI uses ANSI colors when a TTY is detected; the --format flag offers JSON, JUnit, HTML, or custom formatters, but none of the built‑in formatters explicitly strip colors while preserving the human‑readable layout. There is an unresolved discussion about enabling color output by default in non‑TTY environments, and no consensus on a default accessible format.
Does ESLint provide a built‑in formatter that disables ANSI colors while keeping the same plain‑text layout? If not, what would be required to add such a formatter or to make the default output accessible in CI and local terminals?