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 5.0.0 to 5.0.1

3

CHANGELOG.md
# Changelog
## 5.0.1 (2018-04-12)
* Fixed an sub-selector regression in `singleLinePerSelector`. ([29328aa](https://github.com/lesshint/lesshint/commit/29328aae31a63075301edc1e9c322db52fee894b))
## 5.0.0 (2018-03-29)

@@ -3,0 +6,0 @@ * **Breaking** Support for Node versions below 6 has been dropped. ([65ad429](https://github.com/lesshint/lesshint/commit/65ad429013509e089a6300134d418500a9ccd565))

5

lib/linters/single_line_per_selector.js

@@ -39,3 +39,6 @@ 'use strict';

if (child.spaces.before && !hasNewline(child.spaces.before)) {
const {before} = selector.first.spaces;
const {after} = selector.last.spaces;
if ((before && !hasNewline(before)) || (after && !hasNewline(after))) {
const position = node.positionBy({

@@ -42,0 +45,0 @@ word: selector.toString().trim()

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

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

@@ -110,3 +110,13 @@ 'use strict';

});
it('should not report selectors with sub-selectors. #466', function () {
const source = '.foo + .foo,\n.bar {}';
return spec.parse(source, function (ast) {
const result = spec.linter.lint({}, ast.root.first);
expect(result).to.be.undefined;
});
});
});
});
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