Custom Formatter Example
Outputs only file names that contain lint errors.
Steps
- Create
formatter.js
:jsexport default function formatter(results) { return results.map((r) => r.sourceId).join('\n'); }
- Run design-lint with the formatter:bash
npx design-lint "src/**/*" --format ./formatter.js
Next steps
See formatters for more information.