Skip to content

Latest commit

 

History

History
202 lines (171 loc) · 14.4 KB

CHANGELOG.md

File metadata and controls

202 lines (171 loc) · 14.4 KB

Changelog

1.3.1 (2016-02-12)

  • Fixed an issue where spaceAroundOperator would erroneously try to check negative values. (fe37b21)
  • Fixed an issue where spaceAroundOperator would erroneously report font-size/line-height shorthand declarations. (4819346)

1.3.0 (2016-02-12)

  • Added the following linters:
  • Added the possibility to override linter severity and added a new exit status code for it. See linter docs for more info. (0bc95e1, 062950f, e1d6831)
  • Fixed an issue where excludedFiles in the config file weren't honored in the CLI. (974d0fa)
  • Updated lodash to 4.x. (ac52619)
  • Some other minor improvements to singleLinePerProperty. (072664d, bc439e7)

1.2.2 (2016-01-26)

  • Fixed an issue where local variable declarations would crash duplicateProperty. (2955198)

1.2.1 (2015-12-14)

  • Fixed an issue in selectorNaming where it would sometimes fail if there is no selector name. (8b48fee)
  • Fixed an issue in singleLinePerProperty where it would erroneously report "chained" mixins. (71f2afe)
  • Fixed an issue in qualifyingElement where it wouldn't check parent selectors. (8b090c9)

1.2.0 (2015-12-10)

  • Added selectorNaming linter. (94639fa)
  • Reporters now require a report method, and the old use is now deprecated. (72263bc)
  • Fixed an issue where nested media queries would be erroneously reported by singleLinePerProperty. (3f251e1)
  • Fixed an issue where declarations without a semicolon would erroneously trigger singleLinePerProperty. (3f251e1)

1.1.0 (2015-11-21)

  • Replaced our Less parser, gonzales-pe, with our own fork to solve various parsing issues. (a31a790)
  • Byte order marks are now stripped from config files. (9d2721e)
  • New test suite, using Chai and Gulp. (7915ac5, 44a367c)
  • Updated dependencies. (fc714bd, 62f3d72)

1.0.1 (2015-10-22)

  • Fixed an issue where local variable declarations would crash propertyUnits. (06bee99)
  • Fixed an issue where importPath wouldn't check url() statements. (91cf906)
  • Fixed an issue where urlQuotes wouldn't check @import url() statements. (a038ec5)
  • Fixed issues where singleLinePerProperty wouldn't check mixins, variables, and detached rulesets. (ae16888)
  • Fixed incorrect checking of absolute URLs in importPath. (2709dc9, 0756cba)

1.0.0 (2015-10-19)

  • Complete linter refactor. (92bb70a)
  • Merged spaceAfterComma and spaceBeforeComma into spaceAroundComma (28497b0).
  • Merged leadingZero and trailingZero into decimalZero (12d34a5).
  • Removed the quote style option from attributeQuotes. (c0b229e)
  • The comment linter is now disabled by default. (c93121f)
  • The default value for zeroUnit is now keep_unit. (0c9ef81)
  • The following changes has been made to propertyUnits: (8b85210)
    • Renamed global to valid.
    • Added an invalid option.
  • Lint results are now sorted by line and column numbers. (50d223f)
  • Better handling of parse errors, they are now returned together with the lint results. (f6efb3c)
  • Updated gonzales-pe to 3.x. (ac47970, 9cba245)
  • Updated other dependencies. (acb5e10, fcdf05d)

0.9.4 (2015-09-25)

  • Fix for bad 0.9.3.

0.9.3 (2015-09-25)

  • Fixed an issue where propertyOrdering would try to check variables and crash.

0.9.2 (2015-09-23)

  • Fixed an issue where spaceBeforeBrace wouldn't check @media queries. Props @kokarn. (#61).
  • Fixed an issue where finalNewline would fail on empty files.
  • Fixed an issue where trailingWhitespace would fail on empty files.

0.9.1 (2015-09-09)

  • Fixed an issue in propertyOrdering where identical properties weren't handled correctly (#59).
  • Fixed an issue in idSelector where it would sometimes crash.
  • Fixed error message language in urlQuotes Props @shellscape. (#60).

0.9.0 (2015-08-31)

  • lesshint now reports Less parse errors. Props @shellscape. (#46, #47).
  • All reporters now receive a severity property with the values error for parse errors and warning for rule violations. This feature will be developed further in future releases.
  • A propertyOrdering linter has been added. Props @srogers202. (#48)
  • Fixed an issue where spaceBeforeComma and spaceAfterComma would erroneously report on all operators. (#49).
  • Fixed an issue where singleLinePerProperty would erroneously report lines with trailing comments. Props @CITguy. (#54).
  • Fixed an issue where attributeQuotes would erroneously report on boolean attributes. Props @CITguy. (#54).
  • Fixed message grammar in singleLinePerSelector (#42).

0.8.0 (2015-08-16)

  • 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 (2015-08-05)

  • Fixed an issue where Windows line endings in the Less source would cause the wrong line to be reported (#28).

0.7.0 (2015-06-24)

  • 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.2 (2015-06-01)

  • Stopped hexLength and hexNotation from reporting on invalid hex colors.

0.6.1 (2015-05-28)

  • Lock gonzales-pe dependency to stop things from breaking due to changes there.

0.6.0 (2015-05-27)

  • 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.1 (2015-05-19)

  • Fixed issues with hexLength, hexNotation, and hexValidation where they wouldn't check for hex colors outside declarations (in variables for example) (#28).

0.5.0 (2015-05-17)

  • 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 (2015-05-11)

  • Fixed two issues with urlFormat and urlQuotes where they would incorrectly report errors when the URLs were surrounded by spaces (#22).

0.4.0 (2015-05-10)

  • 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 (2015-05-03)

  • 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 (2015-05-01)

  • 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.

0.2.0 (2015-04-27)

  • Added the following linters:
    • borderZero
    • hexLength
    • hexNotation
    • hexValidation
    • spaceAfterPropertyName
  • lesshint will now exit with proper status codes. E.g. 1 when there's a lint error in a checked file, thus failing builds etc.
  • Made some improvements to CLI output, added colors and made it easier to read.
  • Fixed an issue where the spaceBeforeBrace linter would report the wrong column when style is one_space (#4).

0.1.5 (2015-04-24)

  • The default options are now always loaded, regardless if lesshint is running from the CLI or another module.
  • If no files are passed via the CLI, an error is now printed.
  • When something's wrong with a passed config file, the error message from JSON.parse() is also shown.

0.1.4 (2015-04-20)

  • Fixed incorrect dependency name.

0.1.3 (2015-04-20)

  • Fixed some issues where the default config wasn't properly loaded.
  • Fixed an issue when the CLI was passed multiple directories and files, they weren't all linted.

0.1.2 (2015-04-19)

  • Another version bump for npm.

0.1.1 (2015-04-19)

  • Version bump for npm after some old files were deleted.

0.1.0 (2015-04-19)

  • Initial release