Registry / testing / eslint-formatter-simple

eslint-formatter-simple

JSON →
library0.0.13jsnpmunverified

An ESLint formatter that presents lint results in a simple, human-readable format. v0.0.13 is the latest release, targeting Node >=8.14.0. It groups warnings before errors, highlights fixable issues in green, and provides a final file tree summary. Verbose output can be disabled via ESLINT_CFS_VERBOSE=false. Compared to built-in ESLint formatters, it prioritizes readability and clarity.

npm install eslint-formatter-simple
INSTALL
IMPORT
SIG · ESLINT-FORMATTER-S
E
eslint-formatter-simple
testingjavascriptv0.0.13
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.

default
import formatter from 'eslint-formatter-simple';
const formatter = require('eslint-formatter-simple');
The package is ESM-only. CommonJS require may fail in Node <12.
default
const formatter = require('eslint-formatter-simple');
import { formatter } from 'eslint-formatter-simple';
The package exports a single function as default. Named import will be undefined.
formatter as function
eslint --format path/to/eslint-formatter-simple.js
eslint --format simple
ESLint resolves formatters by name only if installed in node_modules. Use --format simple if installed, else provide full path.

Shows how to use the formatter programmatically with ESLint for linting files.

import formatter from 'eslint-formatter-simple'; import { ESLint } from 'eslint'; const engine = new ESLint(); const results = await engine.lintFiles(['src/*.js']); const formatterFunction = formatter(results); console.log(formatterFunction);
Debug
Known issues
deprecatedPackage uses deprecated eslint-loader.
fix
Migrate to eslint-webpack-plugin or @eslint/eslintrc.
affects: >=0.0.1
gotchaEnvironment variable ESLINT_CFS_VERBOSE must be exactly 'false' to disable verbose output; any other value (including undefined) enables verbose.
fix
Use ESLINT_CFS_VERBOSE=false exactly.
affects: >=0.0.1
gotchaThe formatter expects an array of LintResult objects; passing wrong structure may throw.
fix
Ensure results come directly from ESLint.lintFiles or lintText.
affects: >=0.0.1
breakingPackage stopped supporting CommonJS in v0.0.13? (Check changelog).
fix
Use ESM imports or downgrade to earlier version.
affects: >=0.0.13
Errors
Common errors & fixes
Error: Command failed with exit code 1.
ESLint exits with error code when linting fails.
fix
Add ; exit 0 at the end of the script in package.json.
Cannot find module 'eslint-formatter-simple'
Module not installed or incorrect path.
fix
Install as devDependency: npm install eslint-formatter-simple --save-dev
TypeError: formatter is not a function
Importing named export instead of default.
fix
Use default import: import formatter from 'eslint-formatter-simple'
Upgrade
Version history
0.0.13latest on npm
Audit
Dependencies

No dependency data recorded yet.

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