Comparing version 4.3.0 to 4.4.0
# Changelog | ||
## 4.4.0 (2017-11-10) | ||
* Added a `spaceAroundBang` linter. ([b459b8b](https://github.com/lesshint/lesshint/commit/b459b8b6e72960a4fae0ed5ef23baa1305028c8a)) | ||
* CI tests are run on Node 9. ([7f8e58a](https://github.com/lesshint/lesshint/commit/7f8e58ae4078ca13176ae0ac7f84a3c074c94f5e)) | ||
## 4.3.0 (2017-10-28) | ||
@@ -3,0 +7,0 @@ * Updated `postcss-values-parser` to `1.3.0`. ([218ca20](https://github.com/lesshint/lesshint/commit/218ca20d0b8ba54b64bd24c0ded10f1ded978bb2)) |
@@ -148,2 +148,7 @@ { | ||
"spaceAroundBang": { | ||
"enabled": true, | ||
"style": "before" | ||
}, | ||
"spaceAroundComma": { | ||
@@ -150,0 +155,0 @@ "allowNewline": false, |
@@ -38,2 +38,3 @@ 'use strict'; | ||
require('./linters/space_after_property_value'), | ||
require('./linters/space_around_bang'), | ||
require('./linters/space_around_comma'), | ||
@@ -40,0 +41,0 @@ require('./linters/space_around_operator'), |
@@ -29,2 +29,3 @@ # Available linters | ||
* [spaceAfterPropertyValue](#spaceafterpropertyvalue) | ||
* [spaceAroundBang](#spacearoundbang) | ||
* [spaceAroundComma](#spacearoundcomma) | ||
@@ -713,2 +714,37 @@ * [spaceAroundOperator](#spacearoundoperator) | ||
## spaceAroundBang | ||
Defines how the exclamation mark (bang) in `!important` etc. should be formatted by a space to aid readability. | ||
Option | Description | ||
--------| ------------ | ||
`style` | `after`, `before` (**default**), `both`, `none` | ||
### after | ||
```less | ||
.foo { | ||
color: red! important; | ||
} | ||
``` | ||
### before | ||
```less | ||
.foo { | ||
color: red !important; | ||
} | ||
``` | ||
### both | ||
```less | ||
.foo { | ||
color: red ! important; | ||
} | ||
``` | ||
### none | ||
```less | ||
.foo { | ||
color: red!important; | ||
} | ||
``` | ||
## spaceAroundComma | ||
@@ -715,0 +751,0 @@ Defines how commas in functions, mixins, etc. should be formatted by a space to aid readability. |
{ | ||
"name": "lesshint", | ||
"description": "A tool to aid you in writing clean and consistent Less.", | ||
"version": "4.3.0", | ||
"version": "4.4.0", | ||
"main": "./lib/index.js", | ||
@@ -28,3 +28,3 @@ "author": { | ||
"postcss": "^6.0.0", | ||
"postcss-less": "^1.0.0", | ||
"postcss-less": "^1.1.3", | ||
"postcss-selector-parser": "^3.0.0", | ||
@@ -31,0 +31,0 @@ "postcss-values-parser": "^1.3.1", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
483817
155
9838
Updatedpostcss-less@^1.1.3