CILint is a team-oriented code linting tool for Git that focuses on checking only newly added lines during commits. Current stable version is 0.0.21. It integrates with ESLint for JavaScript syntax checking and Git hooks for team enforcement. Released sparsely, last update was in 2017. Unlike other linters that scan entire files, CILint only checks lines staged for commit, reducing noise and encouraging iterative improvements. It also supports automated initialization of configuration files and pre-commit hooks.
npm install cilintNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Installs cilint, runs initializer to set up config files and pre-commit hook, then demonstrates code usage.
Ensure ESLint and plugins are installed at the same level (e.g., both local or both global).
Use const cilint = require('cilint'); then cilint.initializer() or cilint.run().Use 'git add' to stage files before committing, or run CILint manually on a file with `cilint file.js`.
Install ESLint and plugins either all globally with `npm install -g eslint eslint-plugin-import` or all locally in your project.
Install ESLint locally: `npm install eslint --save-dev` or globally: `npm install -g eslint`
Install locally with `npm install cilint --save-dev` and use npx: `npx cilint --init` or run from node_modules: `./node_modules/.bin/cilint`
Run `cilint --init` or call `initializer()` programmatically.