Registry / devops / eslint-formatter-formattify

eslint-formatter-formattify

JSON →
library4.1.0jsnpmunverified

eslint-formatter-formattify is a custom ESLint formatter that outputs beautifully formatted lint results with enhanced readability. As of version 4.1.0 (stable), it supports ESLint >= 6.x and requires Node.js >= 12. It provides colorized output, file grouping, and summary statistics. Unlike standard formatters, it offers a clean, human-readable display suitable for CI pipelines or local development. The package ships TypeScript type definitions. Maintenance is active with regular updates.

npm install eslint-formatter-formattify
INSTALL
IMPORT
SIG · ESLINT-FORMATTER-F
E
eslint-formatter-formattify
devopsjavascriptv4.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

formattify
import formattify from 'eslint-formatter-formattify'
const formattify = require('eslint-formatter-formattify')
The package exports a single default function as an ESM module. CommonJS require is not supported.
Formatter
import type { Formatter } from 'eslint-formatter-formattify'
import { Formatter } from 'eslint-formatter-formattify'
The 'Formatter' type is exported as a TypeScript type, not a runtime value. Use 'import type' to avoid runtime errors.
default (as formattify)
import formattify from 'eslint-formatter-formattify'
import { default } from 'eslint-formatter-formattify'
The default export must be imported without destructuring. The package does not export 'default' as a named export.

Demonstrates using eslint-formatter-formattify to format ESLint results with the default export function.

import eslint from 'eslint'; import formattify from 'eslint-formatter-formattify'; const engine = new eslint.ESLint(); const results = await engine.lintFiles(['src/**/*.js']); const formatted = formattify(results); console.log(formatted);
Debug
Known issues
breakingThe package no longer works with CommonJS require; ESM import is required.
fix
Use 'import formattify from 'eslint-formatter-formattify'' instead of require().
affects: >=4.0.0
gotchaThe formatter expects an ESLint results array; passing a single result object will throw.
fix
Always pass an array, even for a single file: formattify([result]).
affects: *
deprecatedUsing ESLint < 6.x is not supported and may cause unexpected behavior.
fix
Upgrade ESLint to version 6.x or later.
affects: >=4.0.0
Errors
Common errors & fixes
formattify is not a function
Using default import incorrectly, e.g., via require() or destructured import.
fix
Use: import formattify from 'eslint-formatter-formattify'
Cannot find module 'eslint-formatter-formattify'
Package not installed, or using an older version of Node that doesn't support ESM.
fix
Install: npm install eslint-formatter-formattify --save-dev; ensure Node >= 12 and ES modules enabled.
TypeError: results.map is not a function
Passing a single result object instead of an array.
fix
Pass an array: formattify([result])
Upgrade
Version history
4.1.0latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
eslint-formatter-formattify — npm install eslint-formatter-formattify · libregistry