{"id":19472,"library":"eslint-cli","title":"eslint-cli","description":"A global CLI tool that finds and executes the local ESLint installation within a project. Version 1.1.1 is the latest stable release (2016); the package is in maintenance mode with no active development. It differentiates from alternatives by seamlessly running the project's local ESLint version when invoked globally, avoiding the need for npx or npm scripts. Designed for environments like WebStorm where global ESLint is not desired.","status":"maintenance","version":"1.1.1","language":"javascript","source_language":"en","source_url":"https://github.com/mysticatea/eslint-cli","tags":["javascript","eslint","cli"],"install":[{"cmd":"npm install eslint-cli","lang":"bash","label":"npm"},{"cmd":"yarn add eslint-cli","lang":"bash","label":"yarn"},{"cmd":"pnpm add eslint-cli","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"This package must be installed globally; ESLint must be local.","wrong":"npm install eslint-cli --save-dev (local install)","symbol":"eslint-cli","correct":"Install globally: npm install -g eslint-cli"}],"quickstart":{"code":"npm install -g eslint-cli\ncd your-project\nnpm install --save-dev eslint\neslint lib/\n","lang":"javascript","description":"Installs eslint-cli globally and local ESLint, then runs ESLint on the lib directory."},"warnings":[{"fix":"Update to >=0.2.0 and adapt any workarounds for child process.","message":"Version 0.2.0 changed to run ESLint in the same process instead of spawning a child process. If you relied on child process behavior, your setup may break.","severity":"breaking","affected_versions":"<0.2.0"},{"fix":"Run 'npm uninstall -g eslint-cli' then 'npm install -g eslint-cli'.","message":"When upgrading from an older version, you may see an installation error. Remove old eslint-cli first.","severity":"gotcha","affected_versions":"any"},{"fix":"Ensure eslint is installed locally (npm install --save-dev eslint) and eslint-cli globally.","message":"The eslint module must NOT be installed globally; eslint-cli must be global. If both are global, the wrong version may execute.","severity":"gotcha","affected_versions":"any"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Run 'npm install --save-dev eslint' in your project.","cause":"Local eslint is not installed.","error":"Error: Cannot find module 'eslint'"},{"fix":"Run 'npm install -g eslint-cli'.","cause":"eslint-cli is not installed globally or not in PATH.","error":"eslint: command not found"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}