{"id":19679,"library":"eslint-nibble","title":"eslint-nibble","description":"eslint-nibble is an interactive ESLint wrapper that lets you fix linting errors one rule at a time, making it easier to adopt ESLint in large codebases. Version 9.1.1 supports ESLint 7, 8, and 9, with Node >=18. Unlike mass autofix, it lets you selectively apply fixes per rule, providing a focused workflow. It uses eslint-stats for rule overview and a friendly formatter for detailed errors. No bundled ESLint; uses your project's existing ESLint installation.","status":"active","version":"9.1.1","language":"javascript","source_language":"en","source_url":"https://github.com/IanVS/eslint-nibble","tags":["javascript","eslint","formatter","linting","linter","eslint-stats","eslint-friendly-formatter"],"install":[{"cmd":"npm install eslint-nibble","lang":"bash","label":"npm"},{"cmd":"yarn add eslint-nibble","lang":"bash","label":"yarn"},{"cmd":"pnpm add eslint-nibble","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Peer dependency; eslint-nibble does not bundle ESLint and uses the version installed in your project.","package":"eslint","optional":false}],"imports":[{"note":"Used via CLI, not programmatic import. Run with npx or as a script.","wrong":"npm run nibble -- --fix (overwrites files without prompting)","symbol":"default (CLI)","correct":"npx eslint-nibble src/"},{"note":"Exported as ESM only since v9.0; CJS require may fail.","wrong":"const fixNibbles = require('eslint-nibble');","symbol":"fixNibbles","correct":"import { fixNibbles } from 'eslint-nibble';"},{"note":"Deprecated in v8.0.2 in favor of fixNibbles. Prefer fixNibbles.","wrong":"const { nibble } = require('eslint-nibble');","symbol":"nibble (deprecated)","correct":"import { nibble } from 'eslint-nibble';"}],"quickstart":{"code":"// First, ensure eslint is installed in your project\n// npm install --save-dev eslint eslint-nibble\n\n// Then run via npx\nnpx eslint-nibble src/\n\n// Or use fixNibbles programmatically (ESM only)\nimport { fixNibbles } from 'eslint-nibble';\n\nasync function runNibble() {\n  const result = await fixNibbles({\n    eslintOptions: {\n      extensions: ['.js', '.ts'],\n      cache: true,\n      cacheLocation: '.eslintcache',\n    },\n    files: ['src/'],\n  });\n  console.log('Done!');\n}\n\nrunNibble();","lang":"typescript","description":"Shows how to run eslint-nibble via CLI with npx and programmatically using the fixNibbles export."},"warnings":[{"fix":"Upgrade Node.js to version 18 or higher.","message":"Node >=18 required as of v9.0; drops support for Node 12-16.","severity":"breaking","affected_versions":">=9.0"},{"fix":"Remove old ESLint and install ESLint 7, 8, or 9.","message":"ESLint 6 and below no longer supported as of v8.0; use v7 of eslint-nibble if you need older ESLint.","severity":"breaking","affected_versions":">=8.0"},{"fix":"Use --ext .js,.jsx or migrate to ESLint 9 where --ext is removed.","message":"The --ext option no longer defaults to .js as of v9.0; must specify explicitly for ESLint <9.","severity":"deprecated","affected_versions":">=9.0"},{"fix":"Replace imports of 'nibble' with 'fixNibbles'.","message":"Programmatic API changed in v8.0.2: 'nibble' is deprecated, use 'fixNibbles' instead.","severity":"gotcha","affected_versions":">=8.0.2"},{"fix":"Run 'npm install --save-dev eslint' in your project.","message":"eslint-nibble does not bundle ESLint; you must install eslint separately.","severity":"gotcha","affected_versions":">=5.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Install eslint: npm install --save-dev eslint","cause":"eslint is not installed as a peer dependency.","error":"Cannot find module 'eslint'"},{"fix":"Verify the path or use a broader glob (e.g., src/ instead of src/**).","cause":"The glob pattern doesn't match any files.","error":"Error: No files matching 'src/**' were found. (eslint-nibble)"},{"fix":"Switch to ESM: use import { fixNibbles } from 'eslint-nibble' or set type:\"module\" in package.json.","cause":"Using CommonJS require instead of ESM import.","error":"TypeError: (0 , nibble_1.fixNibbles) is not a function"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}