{"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,"search_vec":"'18':42 '7':36 '8':37 '9':39 '9.1.1':33 'adopt':27 'appli':50 'autofix':45 'bundl':74 'codebas':31 'detail':71 'easier':25 'error':17,72 'eslint':2,5,10,28,35,61,75,81,84,89,92 'eslint-friendly-formatt':91 'eslint-nibbl':1,4 'eslint-stat':60,88 'exist':80 'fix':15,51 'focus':56 'formatt':69,85,94 'friend':68,93 'instal':82 'interact':9 'javascript':83 'larg':30 'let':13,47 'lint':16,86 'linter':87 'make':23 'mass':44 'nibbl':3,6 'node':41 'one':18 'overview':65 'per':52 'project':78 'provid':54 'rule':19,53,64 'select':49 'stat':62,90 'support':34 'time':22 'unlik':43 'use':59,76 'version':32 'workflow':57 'wrapper':11","created_at":"2026-04-25T11:19:04.150333+00:00","updated_at":"2026-04-25T11:19:04.150333+00:00","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,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"eslint-nibble","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/IanVS/eslint-nibble","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/eslint-nibble","openapi_spec":null,"status_page":null,"smithery":null,"categories":["testing"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-07-24","install_tag":null}}