Skip to content

Releases: lesshint/lesshint

0.8.0

08 Feb 09:35
Compare
Choose a tag to compare
  • 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

08 Feb 09:35
Compare
Choose a tag to compare
  • Fixed an issue where Windows line endings in the Less source would cause the wrong line to be reported (#28).

0.7.0

08 Feb 09:35
Compare
Choose a tag to compare
  • 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

08 Feb 09:34
Compare
Choose a tag to compare
  • Lock gonzales-pe dependency to stop things from breaking due to changes there.

0.6.0

08 Feb 09:34
Compare
Choose a tag to compare
  • 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 from gonzales-pe.
  • The detached rulesets feature of Less is now supported thanks to a upstream patch in gonzales-pe.
  • Increased test coverage.

0.5.0

08 Feb 09:34
Compare
Choose a tag to compare
  • Added the following linters:
    • attributeQuotes
    • comment
    • leadingZero
    • trailingZero
    • zeroUnit
  • Added an exclude option to the following linters:
    • duplicateProperty
    • idSelector
  • The stringQuotes linter now checks strings everywhere, not just in rulesets.

0.4.1

08 Feb 09:33
Compare
Choose a tag to compare
  • Fixed two issues with urlFormat and urlQuotes where they would incorrectly report errors when the URLs were surrounded by spaces (#22).

0.4.0

08 Feb 09:33
Compare
Choose a tag to compare
  • Breaking change: The LessHint class is now called Lesshint.
  • 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 set enabled: false anymore.
  • Some other improvements to the linters.

0.3.1

08 Feb 09:33
Compare
Choose a tag to compare
  • 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).

0.3.0

08 Feb 09:33
Compare
Choose a tag to compare
  • Added the following linters:
    • duplicateProperty
    • emptyRule
    • finalNewline
    • idSelector
    • trailingSemicolon
  • Better error messages, the property or value that caused the error are now more clearly described.
  • Internal code cleanup.