Comparing version 5.2.1 to 5.3.0
# Changelog | ||
* Added a `pseudoElements` rule. ([e4b1717](https://github.com/lesshint/lesshint/commit/e4b17179384c4ff5eb0f97c3d789ded1db87f812)) | ||
## 5.2.1 (2018-10-24) | ||
* Messages from `propertyOrdering` now include the offending property name. ([23d1324](https://github.com/lesshint/lesshint/commit/23d132449f95f82be35bd3df1e11eeeb1e836489) | ||
* CI tests are now run on Node 11. ([d4d37a4](https://github.com/lesshint/lesshint/commit/d4d37a48d04f60b7b895e074c541f554d3031d8e) | ||
* Messages from `propertyOrdering` now include the offending property name. ([23d1324](https://github.com/lesshint/lesshint/commit/23d132449f95f82be35bd3df1e11eeeb1e836489)) | ||
* CI tests are now run on Node 11. ([d4d37a4](https://github.com/lesshint/lesshint/commit/d4d37a48d04f60b7b895e074c541f554d3031d8e)) | ||
## 5.2.0 (2018-10-23) | ||
* Added a `concentric` option to `propertyOrdering`. ([4de2d06](https://github.com/lesshint/lesshint/commit/4de2d06e771fe2f758b2adf14c7a085bb7eec0ad) | ||
* Added a `concentric` option to `propertyOrdering`. ([4de2d06](https://github.com/lesshint/lesshint/commit/4de2d06e771fe2f758b2adf14c7a085bb7eec0ad)) | ||
* Updated `postcss` to `7.x`. ([7b0b5bc](https://github.com/lesshint/lesshint/commit/7b0b5bcdb9ab9dd126b4c36da691cc785c3aad65)) | ||
@@ -9,0 +11,0 @@ * Updated `postcss-less` to `2.x`. ([4ba534f](https://github.com/lesshint/lesshint/commit/4ba534f6389146766c3ff5b9bcb80f3c7ee9207b)) |
@@ -0,1 +1,3 @@ | ||
'use strict'; | ||
const gulp = require('gulp'); | ||
@@ -14,6 +16,7 @@ | ||
const mocha = require('gulp-mocha'); | ||
const options = { | ||
read: false | ||
}; | ||
return gulp.src(['./test/specs/**/*.js', '!./test/specs/util.js'], { | ||
read: false | ||
}) | ||
return gulp.src(['./test/specs/**/*.js', '!./test/specs/util.js'], options) | ||
.pipe(mocha()); | ||
@@ -29,2 +32,6 @@ }); | ||
gulp.task('watch', () => { | ||
gulp.watch(['./test/**/*.js', './lib/**/*.js'], ['test']); | ||
}); | ||
gulp.task('default', ['test']); |
@@ -108,2 +108,7 @@ { | ||
"pseudoElements": { | ||
"enable": true, | ||
"exclude": [] | ||
}, | ||
"qualifyingElement": { | ||
@@ -110,0 +115,0 @@ "enabled": true, |
@@ -22,2 +22,3 @@ # Available linters | ||
* [propertyUnits](#propertyunits) | ||
* [pseudoElements](#pseudoelements) | ||
* [qualifyingElement](#qualifyingelement) | ||
@@ -480,2 +481,32 @@ * [selectorNaming](#selectornaming) | ||
## pseudoElements | ||
Pseudo-elements should be written two colons (CSS 3 style) and pseudo-classes should have only one. | ||
Option | Description | ||
-------------------- | ---------- | ||
`exclude` | `array` additional "pseudo" to exclude (without colons) | ||
### invalid | ||
```less | ||
.foo:before { | ||
color: red; | ||
} | ||
.bar::focus { | ||
color: red; | ||
} | ||
``` | ||
### valid | ||
```less | ||
.foo::before { | ||
color: red; | ||
} | ||
.bar:focus { | ||
color: red; | ||
} | ||
``` | ||
## qualifyingElement | ||
@@ -482,0 +513,0 @@ Selectors should not include a qualifying element since this will just add unnecessary specificity. |
{ | ||
"name": "lesshint", | ||
"description": "A tool to aid you in writing clean and consistent Less.", | ||
"version": "5.2.1", | ||
"version": "5.3.0", | ||
"main": "./lib/index.js", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -65,3 +65,4 @@ # lesshint | ||
* [Gulp plugin](https://www.npmjs.com/package/gulp-lesshint) - A gulp plugin for `lesshint`. | ||
* [Grunt plugin](https://www.npmjs.com/package/grunt-lesshint) - A Grunt for plugin `lesshint`. | ||
* [Grunt plugin](https://www.npmjs.com/package/grunt-lesshint) - A Grunt plugin for `lesshint`. | ||
* [vscode-lesshint](https://github.com/tohjustin/vscode-lesshint) - A VS Code extension for `lesshint`. | ||
@@ -68,0 +69,0 @@ ## Linters |
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
515683
168
10458
82