Releases: lesshint/lesshint
Releases · lesshint/lesshint
0.8.0
- This release contains possible breaking changes. Check this list before updating.
- Support for custom reporters has been added. This enables users to do whatever they want with the lint results, not just log it to the console.
- Added the following linters:
singleLinePerProperty
singleLinePerSelector
trailingWhitespace
- The Less AST passed to each linter is now frozen to prevent accidental modifying by a linter.
- All linters now returns the complete source of each offending line.
- Linters are no longer passed a filename.
0.7.1
0.7.0
lesshint
has a new home: https://github.com/lesshint/lesshint- Added the following linters
importPath
propertyUnits
spaceAfterComma
spaceBeforeComma
spaceBetweenParens
- Updated
gonzales-pe
dependency, adding support for all forms of:extend()
. - Added the possibility to exclude files. See the
excludedFiles
option and-e
/--exclude
flags. - Added the possibility to specify which file extensions to check, see the
fileExtensions
option. - Fixed an issue where
lesshint
wouldn't report any more errors when the parser encountered a problem. - Fixed an issue where
hexNotation
would report hex codes with invalid characters. - Fixed an issue where
spaceAfterPropertyValue
wouldn't report multiple errors in the same block.
0.6.1
0.6.0
- Added the following linters:
qualifyingElement
spaceAfterPropertyValue
- Fixed an issue where
trailingSemicolon
would fail when a space was preceding the semicolon. - Fixed an issue where
hexNotation
would incorrectly report colors with only numbers. - Fixed an issue in
idSelector
due to a changed AST fromgonzales-pe
. - The
detached rulesets
feature of Less is now supported thanks to a upstream patch ingonzales-pe
. - Increased test coverage.
0.5.0
0.4.1
0.4.0
- Breaking change: The
LessHint
class is now calledLesshint
. - The following linters have been added:
importantRule
stringQuotes
urlFormat
urlQuotes
- All linters can now be disabled by simply setting the respective property to
false
. No need to setenabled: false
anymore. - Some other improvements to the linters.
0.3.1
- When running from the CLI and a line or column is
null
, it's no longer printed. - Fixed an issue where the only error reported was a missing final newline.
- Fixed an issue that prevented errors on the last ruleset from being shown when a final newline was missing.
- Fixed an issue where
emptyRule
would incorrectly report errors on rules that only contain a mixin (#16). - Fixed an issue where
trailingSemicolon
would fail on an empty rule. - Fixed an issue where
trailingSemicolon
would incorrectly report errors in rules containing variables inside@media
directives (#15).