Socket
Socket
Sign inDemoInstall

grunt-contrib-csslint

Package Overview
Dependencies
107
Maintainers
7
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.3.1 to 0.4.0

40

package.json
{
"name": "grunt-contrib-csslint",
"description": "Lint CSS files.",
"version": "0.3.1",
"homepage": "https://github.com/gruntjs/grunt-contrib-csslint",
"description": "Lint CSS files",
"version": "0.4.0",
"author": {

@@ -10,9 +9,3 @@ "name": "Grunt Team",

},
"repository": {
"type": "git",
"url": "git://github.com/gruntjs/grunt-contrib-csslint.git"
},
"bugs": {
"url": "https://github.com/gruntjs/grunt-contrib-csslint/issues"
},
"repository": "grunt/grunt-contrib-csslint",
"licenses": [

@@ -25,3 +18,3 @@ {

"engines": {
"node": ">= 0.10.0"
"node": ">=0.10.0"
},

@@ -32,18 +25,23 @@ "scripts": {

"dependencies": {
"csslint": "~0.10.0",
"chalk": "~0.5.1",
"lodash": "~2.4.1"
"chalk": "^0.5.1",
"csslint": "^0.10.0",
"lodash": "^2.4.1",
"strip-json-comments": "^1.0.2"
},
"devDependencies": {
"grunt-contrib-jshint": "~0.10.0",
"grunt-contrib-nodeunit": "~0.4.1",
"grunt-contrib-clean": "~0.6.0",
"grunt-contrib-internal": "~0.4.2",
"grunt": "~0.4.0"
"grunt": "^0.4.0",
"grunt-cli": "^0.1.13",
"grunt-contrib-clean": "^0.6.0",
"grunt-contrib-internal": "^0.4.2",
"grunt-contrib-jshint": "^0.10.0",
"grunt-contrib-nodeunit": "^0.4.1"
},
"peerDependencies": {
"grunt": "~0.4.0"
"grunt": ">=0.4.0"
},
"keywords": [
"gruntplugin"
"gruntplugin",
"css",
"lint",
"csslint"
],

@@ -50,0 +48,0 @@ "files": [

@@ -1,4 +0,4 @@

# grunt-contrib-csslint v0.3.1 [![Build Status: Linux](https://travis-ci.org/gruntjs/grunt-contrib-csslint.png?branch=master)](https://travis-ci.org/gruntjs/grunt-contrib-csslint)
# grunt-contrib-csslint v0.4.0 [![Build Status: Linux](https://travis-ci.org/grunt/grunt-contrib-csslint.svg?branch=master)](https://travis-ci.org/grunt/grunt-contrib-csslint)
> Lint CSS files.
> Lint CSS files

@@ -8,3 +8,3 @@

## Getting Started
This plugin requires Grunt `~0.4.0`
This plugin requires Grunt `>=0.4.0`

@@ -29,5 +29,3 @@ If you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

Task targets, files and options may be specified according to the grunt [Configuring tasks](http://gruntjs.com/configuring-tasks) guide.
Files are linted with [csslint](https://github.com/stubbornella/csslint).
### Options

@@ -82,12 +80,16 @@

```
A few additional options are supported:
###### csslintrc
Type: `String`
Default value: `null`
If this filename is specified, options and globals defined therein will be used. Task and target options override the options within the `csslintrc` file. The `csslint` file must be valid JSON and looks something like this:
Type: `string`
Default: `null`
If this filename is specified, options and globals defined therein will be used. Task and target options override the options within the `.csslintrc` file. It should be a JSON file, but it supports comments:
```json
{
// unicorns
"qualified-headings": true,

@@ -98,6 +100,8 @@ "unique-headings": true,

```
###### formatters
Type: `array`
Default value: `null`
Type: `array`
Default: `null`
If the formatters options is specified, the grunt csslint task is able to use the

@@ -108,8 +112,8 @@ all formatters provided by csslint.

* text
* compact
* lint-xml
* csslint-xml
* checkstyle-xml
* junit-xml
- `text`
- `compact`
- `lint-xml`
- `csslint-xml`
- `checkstyle-xml`
- `junit-xml`

@@ -119,5 +123,6 @@ For an explanation of those formatters, [check the csslint wiki](https://github.com/stubbornella/csslint/wiki/Command-line-interface), section Options/--format.

###### absoluteFilePathsForFormatters
Type: `Boolean`
Default value: `false`
Type: `boolean`
Default: `false`
If the absoluteFilePathsForFormatters option is specified and set to `true`, the file names in the generated reports are absolute.

@@ -145,2 +150,3 @@

###### Loading rules from an external file
```js

@@ -167,2 +173,3 @@ csslint: {

###### Specifiying output formatters
```js

@@ -200,4 +207,6 @@ csslint: {

## Release History
* 2015-01-18   v0.4.0   The `.csslintrc` file can now contain comments.
* 2014-09-07   v0.3.1   Show affected browsers in errors and warnings.

@@ -214,2 +223,2 @@ * 2014-09-07   v0.3.0   CSSLint "warnings" no longer fail build. Updated dependencies.

*This file was generated on Sun Sep 07 2014 19:49:24.*
*This file was generated on Sun Jan 18 2015 16:00:53.*

@@ -5,3 +5,3 @@ /*

*
* Copyright (c) 2014 Tim Branyen, contributors
* Copyright (c) 2015 Tim Branyen, contributors
* Licensed under the MIT license.

@@ -15,2 +15,3 @@ */

var csslint = require( 'csslint' ).CSSLint;
var stripJsonComments = require( 'strip-json-comments' );
var ruleset = {};

@@ -28,3 +29,4 @@ var verbose = grunt.verbose;

if (options.csslintrc) {
externalOptions = grunt.file.readJSON( options.csslintrc );
var contents = grunt.file.read( options.csslintrc );
externalOptions = JSON.parse( stripJsonComments( contents ) );
// delete csslintrc option to not confuse csslint if a future release

@@ -31,0 +33,0 @@ // implements a rule or options on its own

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc