{"id":25866,"library":"lint-changed","title":"lint-changed","description":"Run linters against git-changed files (both staged and unstaged) to enforce code quality before commit. Version 0.0.0-development, based on lint-staged but differs by including modified-but-unstaged files via changed-git-files instead of staged-git-files. Supports ESLint, stylelint, and other linters for JavaScript, CSS, SCSS, and more. No active maintenance or releases beyond the initial development version. Key differentiator: lints all changed files, not just staged ones, useful for pre-commit checks.","status":"abandoned","version":"0.0.0-development","language":"javascript","source_language":"en","source_url":"https://github.com/TheXardas/lint-changed","tags":["javascript","lint","git","changed","css","scss","sass","eslint"],"install":[{"cmd":"npm install lint-changed","lang":"bash","label":"npm"},{"cmd":"yarn add lint-changed","lang":"bash","label":"yarn"},{"cmd":"pnpm add lint-changed","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"core dependency to detect changed git files","package":"changed-git-files","optional":false}],"imports":[{"note":"Package is ESM-only; CommonJS require will fail","wrong":"const lintChanged = require('lint-changed')","symbol":"lintChanged","correct":"import lintChanged from 'lint-changed'"}],"quickstart":{"code":"import lintChanged from 'lint-changed';\n\nconst result = await lintChanged({\n  linters: {\n    '*.js': ['eslint --fix'],\n    '*.css': ['stylelint --fix']\n  },\n  // optional: directory to search for git repo\n  cwd: process.cwd()\n});\nconsole.log('Linting complete:', result);","lang":"javascript","description":"Runs ESLint on changed JS files and stylelint on changed CSS files, then logs the result."},"warnings":[{"fix":"Switch to lint-staged for a maintained and stable alternative.","message":"Package is marked as 0.0.0-development and has no stable release; consider using lint-staged instead.","severity":"deprecated","affected_versions":"0.0.0-development"},{"fix":"Use import syntax or dynamic import().","message":"Package is ESM-only and cannot be used with CommonJS require.","severity":"breaking","affected_versions":">=0.0.0-development"},{"fix":"Test with your codebase size; consider limiting file patterns.","message":"The package may not handle large repositories efficiently; no performance guarantees.","severity":"gotcha","affected_versions":">=0.0.0-development"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Change to 'import lintChanged from 'lint-changed'' or use dynamic import.","cause":"Used CommonJS require on an ESM-only module.","error":"TypeError: lintChanged is not a function"},{"fix":"Install it: npm install changed-git-files --save-dev","cause":"Missing peer dependency 'changed-git-files'.","error":"Error: Cannot find module 'changed-git-files'"},{"fix":"Use a bundler or Node with --experimental-modules flag.","cause":"Running in a CommonJS environment without transpilation.","error":"SyntaxError: Unexpected token 'export'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}