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 6.3.1 to 6.3.2

3

CHANGELOG.md
# Changelog
## 6.3.2 (2019-02-05)
* Fixed an issue where `newlineAfterBlock` would erroneously mixin calls. ([e38bf49](https://github.com/lesshint/lesshint/commit/e38bf49f0359fbbc91bd10543685bfd3055cdba4))
## 6.3.1 (2019-01-24)

@@ -3,0 +6,0 @@ * Fixed an issue where `newlineAfterBlock` wouldn't work properly with mixins. ([599af9a](https://github.com/lesshint/lesshint/commit/599af9a24c926fa07f1da490f61566273499a39f))

9

lib/linters/newline_after_block.js

@@ -24,2 +24,9 @@ 'use strict';

let prev = node.prev() || {};
// If the previous node is a mixin call, ignore it
if (prev.mixin && !prev.nodes) {
return;
}
/**

@@ -32,4 +39,2 @@ * Allow a preceding comment without a empty line,

let prev = node.prev() || {};
while (prev.type === 'comment') {

@@ -36,0 +41,0 @@ if (Object.is(prev, parent.first) || regexp.test(prev.raws.before)) {

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

@@ -40,3 +40,3 @@ "author": {

"mocha": "^5.2.0",
"nyc": "^12.0.1",
"nyc": "^13.2.0",
"rimraf": "^2.4.2",

@@ -43,0 +43,0 @@ "sinon": "^7.2.3"

@@ -204,3 +204,20 @@ 'use strict';

});
it('should not check adjacent mixin calls (#513)', function () {
const source = `
.foo {
.bar();
.baz();
color: red;
}
`;
return spec.parse(source, function (ast) {
const result = spec.linter.lint({}, ast.root.last);
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