Comparing version 5.0.0 to 5.0.1
# 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)) |
@@ -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; | ||
}); | ||
}); | ||
}); | ||
}); |
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
494691
9971