Registry / devops / eslint-formatter-todo

eslint-formatter-todo

JSON →
library1.0.1jsnpmunverified

eslint-formatter-todo (v1.0.1) generates an ESLint config file that acts as a TODO list, applying the Rubocop auto-gen-config pattern to ESLint. Unlike typical formatters, it outputs a configuration file suppressing all current lint errors and warnings, which can then be extended from .eslintrc. Useful for incrementally fixing legacy codebases with strict rules. Rarely updated; stable for its specific use case.

npm install eslint-formatter-todo
INSTALL
IMPORT
SIG · ESLINT-FORMATTER-T
E
eslint-formatter-todo
devopsjavascriptv1.0.1
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.

todo default export
import formatter from 'eslint-formatter-todo'
const formatter = require('eslint-formatter-todo')
Only valid as an ESLint formatter via --format=todo; programmatic usage is unsupported.

Install the formatter, create an empty TODO config, then lint and generate TODO config.

npm install --save-dev eslint-formatter-todo echo "module.exports = {}" > .eslintrc_todo.js npx eslint --format=todo src/ --output-file .eslintrc_todo.js
Debug
Known issues
gotchaThe output file overwrites any existing file; ensure you have a backup of .eslintrc_todo.js before running.
fix
Use a separate output path or version control the generated file.
affects: all
deprecatedESLint 9 removed built-in formatter support for custom formatters via --format; may need ESLint 8.
fix
Downgrade ESLint or use a wrapper to invoke the formatter programmatically.
affects: >=9.0.0
breakingThis package is not a typical formatter; using it as a formatter in ESLint config will break.
fix
Only use via --format=todo on the command line.
affects: all
Errors
Common errors & fixes
Error: Cannot find module 'eslint-formatter-todo'
Formatters loaded via --format are resolved relative to the current directory; may not be installed globally.
fix
Install locally: npm install --save-dev eslint-formatter-todo and run from the project root.
Invalid formatter 'todo'
ESLint can't find the formatter because the package is not installed or misspelled.
fix
Run: npm install --save-dev eslint-formatter-todo and ensure 'todo' matches the package name.
Upgrade
Version history
1.0.1latest on npm
Audit
Dependencies

No dependency data recorded yet.

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