Comparing version 6.3.1 to 6.3.2
# 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)) |
@@ -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; | ||
}); | ||
}); | ||
}); | ||
}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
527044
10647