An ESLint formatter that produces output compatible with Sublime Text and iTerm2 'click to open file' functionality. Version 4.0.1 is the current stable release, with irregular updates. Key differentiators: file/line/column links that open in editors, clickable rule IDs linking to documentation, errors reported at end, and a summary with contextual code snippets. It is based on the default 'stylish' formatter but enhanced for terminal usability.
npm install eslint-friendly-formatterVerified import paths — ran on the pinned version, not inferred.
Demonstrates using eslint-friendly-formatter to format ESLint results for console output with clickable file links.
Use default import: import formatter from 'eslint-friendly-formatter' or use require('eslint-friendly-formatter').default if needed.Update to v4.0.0 or later and adjust imports as needed.
Test in your target terminal; configure editor to handle 'file://' URIs.
Use ESLint's --fix separately; this formatter only displays results.
npm install --save-dev eslint-friendly-formatter; use --format ./node_modules/eslint-friendly-formatter/index.js
Use const formatter = require('eslint-friendly-formatter').default if needed; for CJS use require('eslint-friendly-formatter') directly.