A tool that runs stylelint (currently for *.scss files) only on changed lines in a git repository, designed for pre-commit hooks. Version 1.1.14 requires Node.js v8.x or higher, with version for 6.x in progress. It differs from full-file linters by focusing only on modified lines, providing faster feedback in pre-commit workflows, and is specifically tailored for SCSS files.
npm install git-style-lintNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic usage: import package, configure with stylelint, lint changed lines in SCSS files.
Upgrade Node.js to v8 or higher.
Ensure files are .scss or extend package to support other formats.
Use Node.js >=8.
npm install stylelint --save-dev
Use CommonJS: const gitStyleLint = require('git-style-lint') or upgrade Node.