Skip to content

Releases: lesshint/lesshint

3.1.1

27 Mar 17:54
v3.1.1
3eeaa60
Compare
Choose a tag to compare
  • Fixed an issue where finalNewline would report the wrong position when double \n characters were used. (d234a20)
  • Fixed an issue where spaceAroundOperator would erroneously report numbers surrounded by parentheses. (98953c0)
  • Made sure internal error classes can handle both strings and error objects. (2a8a52a)
  • Fixed an issue where urlQuotes would erroneously report variables. (4508e81)
  • Updated gulp-mocha to 4.x. (7f392ee)
  • Replaced istanbul with nyc. (92d59f8)
  • Updated sinon to 2.x. (f94cae6)
  • Fixed an singleLinePerProperty example config typo. (5acc9d7)
  • Added a more prominent way to access rule docs from the README. (bc6cc3e)

3.1.0

16 Feb 19:40
v3.1.0
d2a5dbe
Compare
Choose a tag to compare
  • Added a variableValue linter. (1a9d48d)
  • Added a universalSelector linter. (781e372)
  • Fixed an issue where spaceAroundComma would crash on stray commas. (37aaa9a)
  • Fixed faulty line reporting issues in:

3.0.1

13 Feb 19:43
v3.0.1
68a5b4e
Compare
Choose a tag to compare
  • Lockdown postcss-values-parser to ~ range. (7e03dbc)

3.0.0

08 Feb 18:19
v3.0.0
e0e0af1
Compare
Choose a tag to compare
  • Breaking Dropped support for Node < 4. (7a142ee)
  • Breaking The public Node API now exposes multiple classes instead of just the Lesshint class. (5013aae)
  • Breaking All Promises returned from Lesshint methods are now native ones instead of Vow. (afda593)
  • Breaking Whenever an inaccessible file is encountered, lesshint will now throw an error. (63d258)
  • Added a Lesshint.getConfig() method to search for config files using lesshint's logic. (7850cbf)
  • A complete ES6 rewrite was performed. (879160f)
  • A new Runner class has been added, exposing the full CLI API to Node consumers. (7c9e76a)
  • excludedFiles will now be checked on all paths before lesshint tries to access them. (7bc3ab2)
  • The fullPath property in linting results will now always be a full, absolute path. (dab57d4)
  • Relative custom linter paths will now be resolved against process.cwd(). (6f2b5d9)
  • The default reporter can now be explicitly required. (587c215)
  • Replaced use of the exit module with process.exitCode. (004ae71)
  • Passing -1 to the --max-warnings flag is no longer supported. Simply omit the flag for the same behavior. (f8473d1)
  • postcss-values-parser was updated to 1.1.0. (a91aabb)
  • A huge documentation refresh. (3addaf0)
  • Added the engines field to package.json. (a62da86)
  • Added tests for the lesshint binary. (2a16a17)

2.4.0

08 Feb 09:43
v2.4.0
23e2b0c
Compare
Choose a tag to compare
  • Added a allowSingleLineRules option to singleLinePerProperty. (52879a7)
  • Added a position field to results. (6292387)
  • Test console spies are now restored before doing assertions. (00f2f1d)
  • Added issue and PR templates. (33f767d)
  • Fixed a "there's"/"there are" typo in the README. (31e5eb3)

2.3.0

08 Feb 09:43
v2.3.0
3bc8f5f
Compare
Choose a tag to compare
  • Added a -x/--max-warnings CLI flag. (21e184d)
  • Added a JSON reporter. (a69bdee)
  • Reporters can now also be objects and not just file paths. (376940c)
  • Fixed a "is"/"are" typo in the README. (282fdea)

2.2.1

08 Feb 09:42
v2.2.1
68d54ee
Compare
Choose a tag to compare
  • Fixed a newlineAfterBlock regression from 2.2.0. (117a2b5)

2.2.0

08 Feb 09:42
v2.2.0
648c6e6
Compare
Choose a tag to compare
  • Rules without any options can now be enabled by just setting it to to true. (5071ce9)
  • Invalid inline rules are now properly reported. (df2fcac)
  • When lesshint fails for some reason, the currently checked file is now included in the output. (b783f9c)
  • Fixed an issue where duplicateProperty would erroneously report properties using the Less merge feature. (317a7af)
  • Fixed an issue where newlineAfterBlock would give false positives with lines containing trailing whitespace.
    (ed2c9f6)
  • Fixed an issue stringQuotes would erroneously report some at-rules. (5f1a2b6)
  • Fixed a typo in the "Unknown error" output. (059e162)
  • Fixed a typo in the CLI flags documentation. (a77fca0)

2.1.1

08 Feb 09:42
v2.1.1
c7b5347
Compare
Choose a tag to compare
  • Fixed a false positive in newlineAfterBlock with nested blocks. (e64c360)
  • Fixed an issue where singleLinePerSelector would report the same selector multiple times. (507e89)
  • Fixed an issue in spaceBeforeBrace where indented blocks would be erroneously reported with the new_line setting. (45d166e)
  • Fixed an issue in spaceBeforeBrace where the one_space option would erroneously allow other spaces than just a single one. (45d166e)
  • Removed old spaceBeforeComma setting in the default config. (d7bb4f6)

2.1.0

08 Feb 09:42
v2.1.0
a6bb7ec
Compare
Choose a tag to compare
  • Added maxCharPerLine linter. (af69e95)
  • Added newlineAfterBlock linter. (05d48e1)
  • Fixed an issue where stringQuotes wouldn't check at-rules. (aaf1d84)
  • Fixed an issue where spaceBetweenParens would report the wrong line. (fa6ff41)
  • Added tests for failing linter plugins. (02aeef0)
  • Added some examples on how to use lesshint from custom code. (0a87b24)