Releases: lesshint/lesshint
Releases · lesshint/lesshint
3.1.1
- 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
to4.x
. (7f392ee) - Replaced
istanbul
withnyc
. (92d59f8) - Updated
sinon
to2.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
3.0.1
3.0.0
- 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
Promise
s returned fromLesshint
methods are now native ones instead ofVow
. (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 usinglesshint
'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 beforelesshint
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 withprocess.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 to1.1.0
. (a91aabb)- A huge documentation refresh. (3addaf0)
- Added the
engines
field topackage.json
. (a62da86) - Added tests for the
lesshint
binary. (2a16a17)
2.4.0
2.3.0
2.2.1
2.2.0
- 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
- 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 thenew_line
setting. (45d166e) - Fixed an issue in
spaceBeforeBrace
where theone_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
- 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)