Registry / devops / eslint-formatter-toml

eslint-formatter-toml

JSON →
library1.0.0jsnpmunverified

ESLint custom formatter (v1.0.0) that outputs ESLint lint results in TOML format. Released as a stable package, it is a niche formatter for integrating ESLint output with tools that consume TOML. TOML is a minimal configuration file format, but its use for formatter output is rare. Compared to JSON or stylish formatters, this one is for specialized pipelines. No active issues on repo; low maintenance.

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

ESM only as the package exports a default function. CommonJS require will not work.

import formatter from 'eslint-formatter-toml';

Shows how to use the formatter both via CLI and programmatically with ESLint.

// .eslintrc.js module.exports = { // ... your config }; // run: npx eslint --format ./node_modules/eslint-formatter-toml/index.js src/ // Or in code: import formatter from 'eslint-formatter-toml'; import { ESLint } from 'eslint'; const eslint = new ESLint(); const results = await eslint.lintFiles(['src/']); const tomlOutput = formatter(results, results); console.log(tomlOutput);
Debug
Known footguns
gotchaTOML output may not be parseable back if results contain special characters like newlines in messages.
gotchaFormatter expects the standard ESLint results array; passing incorrect structure will throw errors.
gotchaNot maintained actively; may break with future ESLint versions or changes in TOML spec.
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
8 hits · last 30 days
gptbot
3
ahrefsbot
2
Resources