Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lesshint

Package Overview
Dependencies
Maintainers
2
Versions
91
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lesshint - npm Package Compare versions

Comparing version 1.5.0 to 1.5.1

3

CHANGELOG.md
# Changelog
## 1.5.1 (2016-03-29)
* Fixed an issue where `zeroUnit` would crash in certain cases. ([34606cc](https://github.com/lesshint/lesshint/commit/34606cc78963be33e988c1061d404f53e1b26d19))
## 1.5.0 (2016-03-24)

@@ -3,0 +6,0 @@ * Added a `at_least_one_space` value for the `style` option in `spaceAfterPropertyColon`. ([5e9fd1e](https://github.com/lesshint/lesshint/commit/5e9fd1e1d6be23a822394e06f9a8d31bddbac018))

6

lib/linters/zero_unit.js

@@ -19,3 +19,3 @@ 'use strict';

var excludedUnits = [];
var property = node.first('property').first('ident').content;
var property = node.first('property').first('ident');

@@ -32,4 +32,4 @@ if (config) {

// The property shouldn't be checked for units
if (property && excludedProperties.indexOf(property) !== -1) {
// No property, or it shouldn't be checked for units
if (!property || (property.content && excludedProperties.indexOf(property.content) !== -1)) {
return;

@@ -36,0 +36,0 @@ }

{
"name": "lesshint",
"description": "A tool to aid you in writing clean and consistent Less.",
"version": "1.5.0",
"version": "1.5.1",
"main": "./lib/lesshint.js",

@@ -6,0 +6,0 @@ "author": {

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc