Registry / testing / eslint-simple-formatter

eslint-simple-formatter

JSON →
library1.0.1jsnpmunverified

eslint-simple-formatter (v1.0.1) provides a clean, minimal output for ESLint results. It is a simple formatter that reduces noise by displaying only essential lint information. With no dependencies and minimal configuration, it serves as a lightweight alternative to built-in or more complex formatters. The package appears to be a single-function formatter usable via ESLint's --format flag. No release cadence is documented; it is a small utility. Key differentiators: zero dependencies, trivial setup.

testing
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.

The module exports a single default function. In ESM, use default import. In CJS, use require('eslint-simple-formatter').default.

import formatter from 'eslint-simple-formatter'

If using CommonJS, you must access .default because the package is likely transpiled ESM.

const formatter = require('eslint-simple-formatter').default

The --format flag accepts a module path directly. No import needed when used via CLI.

eslint --format eslint-simple-formatter src/

Shows installation, CLI usage, and programmatic usage of the formatter using ESM.

// Install npm install --save-dev eslint-simple-formatter // Use via ESLint CLI eslint --format eslint-simple-formatter src/ // Or in code (ESM) import formatter from 'eslint-simple-formatter'; import { ESLint } from 'eslint'; const eslint = new ESLint(); const results = await eslint.lintFiles(['src/']); const output = formatter(results); console.log(output);
Debug
Known footguns
gotchaThe formatter may not show all details like rule IDs or line numbers if results are empty.
gotchaOnly works with ESLint's result format. Not compatible with other linting tools.
gotchaThe exported default function expects exactly one argument (results array); passing extra arguments may cause silent errors.
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
9 hits · last 30 days
gptbot
3
ahrefsbot
2
bingbot
1
Resources