{"id":25744,"library":"ignore-lint-errors","title":"ignore-lint-errors","description":"A codemod that automatically adds per-line lint suppression comments (e.g., eslint-disable-next-line, @glint-expect-error) for every lint error in your codebase. The current stable version is 0.10.0, with releases occurring weekly or as needed. It supports ESLint v9, Glint v2, Stylelint v17, and TypeScript v5, and is Node.js v22+. Unlike other tools that use global file-level ignores, this codemod adds a local comment per error, providing a more accurate count of issues and preserving linting for clean code. It requires pnpx to run and a separate formatting step after execution.","status":"active","version":"0.10.0","language":"javascript","source_language":"en","source_url":"https://github.com/ijlee2/ignore-lint-errors","tags":["javascript","codemod","ember-codemod","emberjs","eslint","glint","stylelint","typescript"],"install":[{"cmd":"npm install ignore-lint-errors","lang":"bash","label":"npm"},{"cmd":"yarn add ignore-lint-errors","lang":"bash","label":"yarn"},{"cmd":"pnpm add ignore-lint-errors","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"Package is ESM-only; require() will fail.","wrong":"const ignoreLintErrors = require('ignore-lint-errors')","symbol":"ignoreLintErrors","correct":"import { ignoreLintErrors } from 'ignore-lint-errors'"},{"note":"The `run` function is the main programmatic entry point. It accepts options like `linter`, `root`, and `src`.","wrong":"","symbol":"run","correct":"import { run } from 'ignore-lint-errors'"},{"note":"A default export is also available, which is the same as the named `ignoreLintErrors` export.","wrong":"","symbol":"default","correct":"import ignoreLintErrors from 'ignore-lint-errors'"}],"quickstart":{"code":"cd /path/to/your/project\npnpx ignore-lint-errors --linter eslint --src app\npnpm prettier . --write","lang":"shell","description":"Run the codemod to add eslint-disable-next-line comments for all ESLint errors in the app directory, then fix formatting with Prettier."},"warnings":[{"fix":"Upgrade Node.js to v22 or later.","message":"Package requires Node.js v22 or above. Older Node.js versions will fail to run.","severity":"breaking","affected_versions":"<22"},{"fix":"Always pass `--linter eslint`, `--linter stylelint`, or `--linter typescript`.","message":"The argument `--linter` must be specified; omitting it will cause an error.","severity":"deprecated","affected_versions":">=0.1.0"},{"fix":"Run `pnpm prettier . --write` or equivalent after the codemod.","message":"After running the codemod, you must run Prettier (or another formatter) separately; the codemod does not format code.","severity":"gotcha","affected_versions":">=0.1.0"},{"fix":"Clone the repo and run the codemod locally after customizing the source code.","message":"The codemod is not designed to cover one-off edge cases; it may miss some lint errors or produce incorrect comments in unusual file configurations.","severity":"gotcha","affected_versions":">=0.1.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Install locally: `pnpm add -D ignore-lint-errors`","cause":"The package is not installed or is installed globally but being imported as a module.","error":"Error: Cannot find module 'ignore-lint-errors'"},{"fix":"Upgrade Node.js to v22 or later.","cause":"Node.js version is too old.","error":"Error: The engine \"node\" is incompatible with this module. Expected version \"22.* || >= 24\". Got \"20.x.x\""},{"fix":"Use import syntax: `import { ignoreLintErrors } from 'ignore-lint-errors'`","cause":"Using require() on an ESM-only package.","error":"SyntaxError: Unexpected token 'export'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}