Registry / devops / grunt-scsslint

grunt-scsslint

JSON →
library0.1.0jsnpmunverified

Grunt plugin to lint SCSS files using scss-lint (Ruby gem). Version 0.1.0, last updated 2014. Requires Ruby and scss-lint gem to be installed separately. Provides options for config file, exclude/inlude linters, and bundle exec support. Less active compared to modern alternatives like stylelint for SCSS.

npm install grunt-scsslint
INSTALL
IMPORT
SIG · GRUNT-SCSSLINT
G
grunt-scsslint
devopsjavascriptv0.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

grunt-scsslint
grunt.loadNpmTasks('grunt-scsslint');
const scsslint = require('grunt-scsslint');
Grunt tasks are loaded via loadNpmTasks, not directly required.

Shows basic Gruntfile configuration for the scsslint task with config file.

module.exports = function(grunt) { grunt.initConfig({ scsslint: { options: { config: '.scss-lint.yml' }, all: { src: ['src/**/*.scss'] } } }); grunt.loadNpmTasks('grunt-scsslint'); grunt.registerTask('default', ['scsslint']); };
Debug
Known issues
gotchaRequires Ruby and scss-lint gem to be installed globally.
fix
Install Ruby then run 'gem install scss-lint'.
affects: all
deprecatedThe scss-lint Ruby gem is deprecated and no longer maintained.
fix
Consider migrating to Dart Sass, stylelint, or other modern tools.
affects: all
gotchagrunt-scsslint uses a Node.js wrapper for scss-lint, which may have compatibility issues with Node.js versions.
fix
Use Node.js 0.8+ as specified; newer versions may cause issues.
affects: all
Errors
Common errors & fixes
Warning: Task "scsslint" not found. Use --force to continue.
grunt.loadNpmTasks('grunt-scsslint') not called or task not installed.
fix
Ensure 'grunt-scsslint' is in devDependencies and loadNpmTasks is in Gruntfile.
Fatal error: scss-lint: command not found
Ruby gem scss-lint is not installed.
fix
Run 'gem install scss-lint' in terminal.
Error: Cannot find module 'grunt-scsslint'
Package not installed or not in node_modules.
fix
Run 'npm install grunt-scsslint --save-dev'.
Upgrade
Version history
0.1.0latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
grunt-scsslint — npm install grunt-scsslint · libregistry