# grunt-sass-lint

> Lint your sass using Node Sass Lint

Latest version **0.2.4** (published 2017-10-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install grunt-sass-lint
pnpm add grunt-sass-lint
yarn add grunt-sass-lint
bun add grunt-sass-lint
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.4 |
| Published | 2017-10-03 |
| First published | 2015-08-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 38 |
| Author | Micah Godbolt |
| Maintainers | danpurdy, micahgodbolt, snugug |
| Keywords | gruntplugin, sass, scss, lint |

## Links

- npm: https://www.npmjs.com/package/grunt-sass-lint
- Repository: https://github.com/sasstools/grunt-sass-lint
- Homepage: https://github.com/sasstools/grunt-sass-lint#readme
- Issues: https://github.com/sasstools/grunt-sass-lint/issues
- npm.io page: https://npm.io/package/grunt-sass-lint

## Dependencies (1)

- [sass-lint](https://npm.io/package/sass-lint.md) ^1.12.0

## Alternatives

- [eslint-plugin-sonarjs](https://npm.io/package/eslint-plugin-sonarjs.md) — 2.9M weekly downloads
- [eslint-config-expo](https://npm.io/package/eslint-config-expo.md) — 1.5M weekly downloads
- [@matter/protocol](https://npm.io/package/@matter/protocol.md) — 63.5K weekly downloads
- [@eventcatalog/linter](https://npm.io/package/@eventcatalog/linter.md) — 24.8K weekly downloads
- [@inrupt/eslint-config-base](https://npm.io/package/@inrupt/eslint-config-base.md) — 4.5K weekly downloads

## Recent versions

- 0.2.4 (latest) — 2017-10-03
- 0.2.3 — 2017-08-28
- 0.2.2 — 2016-11-09
- 0.2.1 — 2016-11-07
- 0.2.0 — 2016-04-21
- 0.1.2 — 2016-04-11
- 0.1.1 — 2016-03-30
- 0.1.0 — 2016-01-18
- 0.1.0-beta.4 — 2015-10-13
- 0.1.0-beta.3 — 2015-08-29
- 0.1.0-beta.2 — 2015-08-29
- 0.1.0-beta.1 — 2015-08-29

## README

# Grunt Sass Lint

[Grunt](http://gruntjs.com/) plugin for [Sass Lint](https://github.com/sasstools/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
```js
grunt.initConfig({
	sasslint: {
		options: {
			configFile: 'config/.sass-lint.yml',
		},
		target: ['location/\*.scss', 'other_location/\*.scss']
	}
});
```

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

## Options
See the [sass-lint options](https://github.com/sasstools/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.

---
_Source: https://npm.io/package/grunt-sass-lint · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
