An ESLint formatter that displays file paths with line/column numbers clickable in terminals like iTerm2, Sublime Text, and Guake. Version 7.0.0 is current. It aggregates errors at the end, shows rule IDs as clickable links to documentation, and provides a summary of offended rules. Unlike the default 'stylish' formatter, it adds context lines around errors and integrates well with editors that support the 'file:line:column' pattern. It is the recommended formatter for developer-friendly linting output in terminal-based editors.
npm install eslint-formatter-friendlyVerified import paths — ran on the pinned version, not inferred.
Shows how to use the formatter programmatically with ESLint's CLIEngine. It processes files and outputs formatted results.
Ensure results is the array from ESLint report.results.
Configure your terminal to associate file URIs with your editor (e.g., Sublime Text).
Use dynamic import or remain on CommonJS until ESM is stable.
Use friendlyFormatter(results) after eslint.lintText or eslint.result.
Update to Node >=10 or use older version (<7.0.0).
Run 'npm install eslint-formatter-friendly --save-dev'.
Use 'const formatter = require("eslint-formatter-friendly");' or 'import formatter from "eslint-formatter-friendly";'.Call formatter(report.results) where report is from CLIEngine.executeOnFiles.
No dependency data recorded yet.