grunt-contrib-csslint
Advanced tools
Comparing version 0.3.1 to 0.4.0
{ | ||
"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 |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
114
215
11347
5
6
2
2
1
+ Addedstrip-json-comments@^1.0.2
+ Addedansi-styles@4.3.0(transitive)
+ Addedargparse@1.0.10(transitive)
+ Addedarray-each@1.0.1(transitive)
+ Addedarray-slice@1.1.0(transitive)
+ Addedasync@3.2.5(transitive)
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbrace-expansion@1.1.11(transitive)
+ Addedbraces@3.0.3(transitive)
+ Addedchalk@4.1.2(transitive)
+ Addedcolor-convert@2.0.1(transitive)
+ Addedcolor-name@1.1.4(transitive)
+ Addedcolors@1.1.2(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addeddateformat@4.6.3(transitive)
+ Addeddetect-file@1.0.0(transitive)
+ Addedesprima@4.0.1(transitive)
+ Addedexpand-tilde@2.0.2(transitive)
+ Addedextend@3.0.2(transitive)
+ Addedfill-range@7.1.1(transitive)
+ Addedfindup-sync@4.0.05.0.0(transitive)
+ Addedfined@1.2.0(transitive)
+ Addedflagged-respawn@1.0.1(transitive)
+ Addedfor-in@1.0.2(transitive)
+ Addedfor-own@1.0.0(transitive)
+ Addedfs.realpath@1.0.0(transitive)
+ Addedfunction-bind@1.1.2(transitive)
+ Addedgetobject@1.0.2(transitive)
+ Addedglob@7.1.7(transitive)
+ Addedglobal-modules@1.0.0(transitive)
+ Addedglobal-prefix@1.0.2(transitive)
+ Addedgrunt@1.6.1(transitive)
+ Addedgrunt-cli@1.4.3(transitive)
+ Addedgrunt-known-options@2.0.0(transitive)
+ Addedgrunt-legacy-log@3.0.0(transitive)
+ Addedgrunt-legacy-log-utils@2.1.0(transitive)
+ Addedgrunt-legacy-util@2.0.1(transitive)
+ Addedhas-flag@4.0.0(transitive)
+ Addedhasown@2.0.2(transitive)
+ Addedhomedir-polyfill@1.0.3(transitive)
+ Addediconv-lite@0.6.3(transitive)
+ Addedinflight@1.0.6(transitive)
+ Addedini@1.3.8(transitive)
+ Addedinterpret@1.1.0(transitive)
+ Addedis-absolute@1.0.0(transitive)
+ Addedis-core-module@2.13.1(transitive)
+ Addedis-extglob@2.1.1(transitive)
+ Addedis-glob@4.0.3(transitive)
+ Addedis-number@7.0.0(transitive)
+ Addedis-plain-object@2.0.4(transitive)
+ Addedis-relative@1.0.0(transitive)
+ Addedis-unc-path@1.0.0(transitive)
+ Addedis-windows@1.0.2(transitive)
+ Addedisexe@2.0.0(transitive)
+ Addedisobject@3.0.1(transitive)
+ Addedjs-yaml@3.14.1(transitive)
+ Addedkind-of@6.0.3(transitive)
+ Addedliftup@3.0.1(transitive)
+ Addedlodash@4.17.21(transitive)
+ Addedmake-iterator@1.0.1(transitive)
+ Addedmap-cache@0.2.2(transitive)
+ Addedmicromatch@4.0.7(transitive)
+ Addedminimatch@3.0.8(transitive)
+ Addednopt@3.0.64.0.3(transitive)
+ Addedobject.defaults@1.1.0(transitive)
+ Addedobject.map@1.0.1(transitive)
+ Addedobject.pick@1.3.0(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedos-homedir@1.0.2(transitive)
+ Addedos-tmpdir@1.0.2(transitive)
+ Addedosenv@0.1.5(transitive)
+ Addedparse-filepath@1.0.2(transitive)
+ Addedparse-passwd@1.0.0(transitive)
+ Addedpath-is-absolute@1.0.1(transitive)
+ Addedpath-parse@1.0.7(transitive)
+ Addedpath-root@0.1.1(transitive)
+ Addedpath-root-regex@0.1.2(transitive)
+ Addedpicomatch@2.3.1(transitive)
+ Addedrechoir@0.7.1(transitive)
+ Addedresolve@1.22.8(transitive)
+ Addedresolve-dir@1.0.1(transitive)
+ Addedsafer-buffer@2.1.2(transitive)
+ Addedsprintf-js@1.0.31.1.3(transitive)
+ Addedstrip-json-comments@1.0.4(transitive)
+ Addedsupports-color@7.2.0(transitive)
+ Addedsupports-preserve-symlinks-flag@1.0.0(transitive)
+ Addedto-regex-range@5.0.1(transitive)
+ Addedunc-path-regex@0.1.2(transitive)
+ Addedunderscore.string@3.3.6(transitive)
+ Addedutil-deprecate@1.0.2(transitive)
+ Addedv8flags@3.2.0(transitive)
+ Addedwhich@1.3.12.0.2(transitive)
+ Addedwrappy@1.0.2(transitive)
- Removedargparse@0.1.16(transitive)
- Removedasync@0.1.22(transitive)
- Removedcoffee-script@1.3.3(transitive)
- Removedcolors@0.6.2(transitive)
- Removeddateformat@1.0.2-1.2.3(transitive)
- Removedesprima@1.0.4(transitive)
- Removedfindup-sync@0.1.3(transitive)
- Removedgetobject@0.1.0(transitive)
- Removedglob@3.1.213.2.11(transitive)
- Removedgraceful-fs@1.2.3(transitive)
- Removedgrunt@0.4.5(transitive)
- Removedgrunt-legacy-log@0.1.3(transitive)
- Removedgrunt-legacy-log-utils@0.1.1(transitive)
- Removedgrunt-legacy-util@0.2.0(transitive)
- Removediconv-lite@0.2.11(transitive)
- Removedinherits@1.0.2(transitive)
- Removedjs-yaml@2.0.5(transitive)
- Removedlodash@0.9.2(transitive)
- Removedlru-cache@2.7.3(transitive)
- Removedminimatch@0.2.140.3.0(transitive)
- Removednopt@1.0.10(transitive)
- Removedrimraf@2.2.8(transitive)
- Removedsigmund@1.0.1(transitive)
- Removedunderscore@1.7.0(transitive)
- Removedunderscore.string@2.2.12.3.32.4.0(transitive)
- Removedwhich@1.0.9(transitive)
Updatedchalk@^0.5.1
Updatedcsslint@^0.10.0
Updatedlodash@^2.4.1