Launch Week Day 2: Introducing Reports: An Extensible Reporting Framework for Socket Data.Learn More
Socket
Book a DemoSign in
Socket

grunt-sass-lint

Package Overview
Dependencies
Maintainers
3
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-sass-lint

Lint your sass using Node Sass Lint

latest
Source
npmnpm
Version
0.2.4
Version published
Weekly downloads
2.6K
-37.04%
Maintainers
3
Weekly downloads
 
Created
Source

Grunt Sass Lint

Grunt plugin for Sass Lint.

Install

npm install grunt-sass-lint --save-dev

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

grunt.loadNpmTasks('grunt-sass-lint');

Examples

grunt.initConfig({
	sasslint: {
		options: {
			configFile: 'config/.sass-lint.yml',
		},
		target: ['location/\*.scss', 'other_location/\*.scss']
	}
});
grunt.initConfig({
	sasslint: {
		options: {
			configFile: 'config/.sass-lint.yml',
			formatter: 'junit',
			outputFile: 'report.xml'
		},
		target: ['location/*.scss']
	}
});

Options

See the sass-lint options.

In addition the following options are supported:

configFile

Type: string Default: ``

Will fallback to .sass-lint.yml or the file location set at the "sasslintConfig" key inside of package.json

formatter

Type: string Default: stylish

Changes the output format of the generated reports. See https://github.com/eslint/eslint/tree/master/lib/formatters for available formatters.

outputFile

Type: string Default: ``

Will save the generated output to disk instead of command line.

Keywords

gruntplugin

FAQs

Package last updated on 03 Oct 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts