Socket
Socket
Sign inDemoInstall

grunt-contrib-csslint

Package Overview
Dependencies
11
Maintainers
7
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.5.0 to 1.0.0

17

package.json
{
"name": "grunt-contrib-csslint",
"description": "Lint CSS files",
"version": "0.5.0",
"version": "1.0.0",
"author": {

@@ -14,2 +14,3 @@ "name": "Grunt Team",

},
"main": "tasks/csslint.js",
"scripts": {

@@ -21,16 +22,13 @@ "test": "grunt test --force"

"csslint": "^0.10.0",
"lodash": "^3.3.0",
"lodash": "^3.8.0",
"strip-json-comments": "^1.0.2"
},
"devDependencies": {
"grunt": "^0.4.0",
"grunt": "^0.4.5",
"grunt-cli": "^0.1.13",
"grunt-contrib-clean": "^0.6.0",
"grunt-contrib-internal": "^0.4.2",
"grunt-contrib-jshint": "^0.11.0",
"grunt-contrib-internal": "^0.4.12",
"grunt-contrib-jshint": "^0.11.2",
"grunt-contrib-nodeunit": "^0.4.1"
},
"peerDependencies": {
"grunt": ">=0.4.0"
},
"keywords": [

@@ -43,5 +41,4 @@ "gruntplugin",

"files": [
"tasks",
"LICENSE-MIT"
"tasks"
]
}

@@ -1,2 +0,2 @@

# grunt-contrib-csslint v0.5.0 [![Build Status: Linux](https://travis-ci.org/gruntjs/grunt-contrib-csslint.svg?branch=master)](https://travis-ci.org/gruntjs/grunt-contrib-csslint)
# grunt-contrib-csslint v1.0.0 [![Build Status: Linux](https://travis-ci.org/gruntjs/grunt-contrib-csslint.svg?branch=master)](https://travis-ci.org/gruntjs/grunt-contrib-csslint)

@@ -8,3 +8,2 @@ > Lint CSS files

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

@@ -134,2 +133,9 @@ 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:

#### quiet_all
Type: `boolean`
Default: `false`
Outputs without errors and warnings.
### Usage Examples

@@ -232,2 +238,3 @@

* 2016-03-04   v1.0.0   Point main to task and remove peerDeps. Updates to docs.
* 2015-07-18   v0.5.0   Add ability to register custom formatters.

@@ -246,2 +253,2 @@ * 2015-01-18   v0.4.0   The `.csslintrc` file can now contain comments.

*This file was generated on Sat Jul 18 2015 22:58:12.*
*This file was generated on Fri Mar 04 2016 16:53:29.*

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

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

@@ -77,3 +77,3 @@ */

var offenderMessage;
if (typeof message.line !== 'undefined') {
if (_.isUndefined(message.line)) {
offenderMessage =

@@ -87,3 +87,3 @@ chalk.yellow('L' + message.line) +

if (!options.quiet || options.quiet && message.type === 'error') {
if (!options.quiet && !options.quiet_all || options.quiet && message.type === 'error' && !options.quiet_all) {
grunt.log.writeln(chalk.red('[') + offenderMessage + chalk.red(']'));

@@ -115,3 +115,3 @@ grunt.log[ message.type === 'error' ? 'error' : 'writeln' ](

if (formatterId && formatterDefinition.dest) {
if (!csslint.hasFormat(formatterId) && typeof formatterId === 'object' ) { // A custom formatter was supplied
if (!csslint.hasFormat(formatterId) && _.isObject(formatterId)) { // A custom formatter was supplied
csslint.addFormatter(formatterId);

@@ -118,0 +118,0 @@

Sorry, the diff of this file is not supported yet

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