{"id":25668,"library":"grunt-contrib-sass-lint","title":"grunt-contrib-sass-lint","description":"A Grunt task plugin to run sass-lint on your Sass/SCSS files. Version 0.0.4 is the last release, with no apparent update cadence. It wraps the sass-lint library and provides a config option to specify a lint configuration file. Compared to alternatives like grunt-sass-lint, this plugin is minimal but lacks active maintenance. It requires Node >= 5.3.0 and Grunt.","status":"deprecated","version":"0.0.4","language":"javascript","source_language":"en","source_url":"git://github.com/katallaxie/grunt-contrib-sass-lint","tags":["javascript","grunt","sass","scss","lint"],"install":[{"cmd":"npm install grunt-contrib-sass-lint","lang":"bash","label":"npm"},{"cmd":"yarn add grunt-contrib-sass-lint","lang":"bash","label":"yarn"},{"cmd":"pnpm add grunt-contrib-sass-lint","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"core linting engine","package":"sass-lint","optional":false}],"imports":[{"note":"Standard Grunt plugin loading. Do not invoke as function.","wrong":"grunt.loadNpmTasks('grunt-contrib-sass-lint')()","symbol":"grunt","correct":"grunt.loadNpmTasks('grunt-contrib-sass-lint');"}],"quickstart":{"code":"// Gruntfile.js\nmodule.exports = function(grunt) {\n  grunt.initConfig({\n    'sass-lint': {\n      options: {\n        config: '.sass-lint.yml'\n      },\n      target: ['src/**/*.scss']\n    }\n  });\n  grunt.loadNpmTasks('grunt-contrib-sass-lint');\n  grunt.registerTask('default', ['sass-lint']);\n};","lang":"javascript","description":"Basic Grunt configuration to lint all .scss files under src/ with a custom config file."},"warnings":[{"fix":"Migrate to stylelint or another modern Sass linter.","message":"This package is no longer maintained. sass-lint itself is deprecated in favor of stylelint with sass rules.","severity":"deprecated","affected_versions":">=0.0.4"},{"fix":"Ensure config file exists at expected location or pass explicit path.","message":"The `config` option must be a string path to a YAML file. If not provided, it searches for `.sass-lint.yml` in cwd.","severity":"gotcha","affected_versions":">=0.0.1"},{"fix":"Use grunt.file.src or similar array.","message":"The source files must be passed as an array of strings (grunt file glob). No other options are supported.","severity":"gotcha","affected_versions":">=0.0.1"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run `npm install grunt-contrib-sass-lint --save-dev` and add `grunt.loadNpmTasks('grunt-contrib-sass-lint');` to Gruntfile.","cause":"Grunt plugin not loaded or installed.","error":"Warning: Task \"sass-lint\" not found. Use --force to continue."},{"fix":"Run `npm install sass-lint --save-dev` (or `--save` depending on needs).","cause":"Missing peer dependency sass-lint.","error":"Fatal error: Cannot find module 'sass-lint'"},{"fix":"Create a `.sass-lint.yml` file or set the `config` option to an existing file path.","cause":"The default config file does not exist in the current working directory.","error":"Config file not found: .sass-lint.yml"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}