{"id":25681,"library":"grunt-sass-lint","title":"grunt-sass-lint","description":"Grunt plugin for Node Sass Lint. Version 0.2.4 (latest as of 2021) is the final release; the package is unmaintained and sass-lint is deprecated in favor of stylelint. It allows linting .scss and .sass files with configurable rules, provides multiple formatters (stylish, junit, etc.), and integrates directly into Grunt workflows. However, both the plugin and its underlying linter are no longer active; stylelint with scss plugin is the recommended replacement.","status":"deprecated","version":"0.2.4","language":"javascript","source_language":"en","source_url":"https://github.com/sasstools/grunt-sass-lint","tags":["javascript","gruntplugin","sass","scss","lint"],"install":[{"cmd":"npm install grunt-sass-lint","lang":"bash","label":"npm"},{"cmd":"yarn add grunt-sass-lint","lang":"bash","label":"yarn"},{"cmd":"pnpm add grunt-sass-lint","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Core linting engine; required for all functionality.","package":"sass-lint","optional":false}],"imports":[{"note":"The task name in Grunt is 'sasslint', but the NPM package is 'grunt-sass-lint'.","wrong":"grunt.loadNpmTasks('grunt-sasslint');","symbol":"grunt-sass-lint","correct":"grunt.loadNpmTasks('grunt-sass-lint');"},{"note":"The Grunt task name is 'sasslint' (without hyphen).","wrong":"grunt.initConfig({ sasslint: { ... } });","symbol":"sasslint","correct":"grunt.initConfig({ sasslint: { ... } });"},{"note":"The 'target' property is required; without it, no files are linted.","wrong":"sasslint: { options: { configFile: '.sass-lint.yml' } }","symbol":"options","correct":"sasslint: { options: { configFile: '.sass-lint.yml', formatter: 'junit' }, target: ['src/**/*.scss'] }"}],"quickstart":{"code":"module.exports = function(grunt) {\n  grunt.initConfig({\n    sasslint: {\n      options: {\n        configFile: '.sass-lint.yml',\n        formatter: 'stylish'\n      },\n      target: ['src/**/*.scss']\n    }\n  });\n  grunt.loadNpmTasks('grunt-sass-lint');\n  grunt.registerTask('default', ['sasslint']);\n};","lang":"javascript","description":"Basic Grunt task configuration to lint all .scss files in src/ using .sass-lint.yml config."},"warnings":[{"fix":"Migrate to stylelint and use stylelint-scss plugin for SCSS linting.","message":"sass-lint is deprecated; use stylelint with @stylelint/stylelint-scss instead.","severity":"deprecated","affected_versions":">=0.1.0"},{"fix":"Move to a different task runner or use stylelint directly via CLI or Grunt-stylelint plugin.","message":"Grunt-sass-lint is no longer maintained; no updates since 2018.","severity":"deprecated","affected_versions":">=0.2.0"},{"fix":"Always specify a configFile option or create a .sass-lint.yml file.","message":"configFile option falls back to .sass-lint.yml in project root or 'sasslintConfig' in package.json, but if none exist, the task fails silently.","severity":"gotcha","affected_versions":">=0.1.0"},{"fix":"Always use an array: target: ['src/**/*.scss'].","message":"The 'target' property must be an array of file patterns; passing a string causes unexpected behavior.","severity":"gotcha","affected_versions":">=0.1.0"},{"fix":"Use Node.js >=4.0.0 for reliable error reporting.","message":"Node.js >=0.10.0 required; versions below 4.0 lack error handling for some sass-lint output.","severity":"breaking","affected_versions":"<4.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Add configFile: '.sass-lint.yml' to the sasslint options.","cause":"No .sass-lint.yml found and no configFile option set.","error":"Running \"sasslint\" task Fatal error: Unable to find a valid config file format."},{"fix":"Run `npm install grunt-sass-lint --save-dev` and add `grunt.loadNpmTasks('grunt-sass-lint');` to Gruntfile.","cause":"grunt.loadNpmTasks('grunt-sass-lint') missing or package not installed.","error":"Warning: Task \"sasslint\" not found. Use --force to continue."},{"fix":"Run `npm install sass-lint --save-dev` alongside grunt-sass-lint.","cause":"sass-lint peer dependency not installed.","error":"Fatal error: Cannot find module 'sass-lint'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}