December 10, 2015
The long overdue update!
Changes
- The config file can now be cached for a small performance boost #279
- Added an
ignore-custom-propertiesoption to the property sort order rule, allowing you to ignore/include non standard properties in your property sort orders #302 - Streamlined the
force-pseudo-nesting,force-element-nestingandforce-attribute-nestingrules #323 - Improved the testing of our config handling #403
- Corrected the naming of the
no-misspelled-propertiestests #405 - Updated some of our dependencies to their latest versions #428
no-trailing-zeronow acts similar to theno-unnecessary-mantissarule of scss-lint in that it warns about unnecessary decimals #438
CLI
- [-s --syntax] Syntax flag allows you to specify syntax of the file(s) you wish to lint #381
New Rules
Fixes
- Pre emptive fix for
space-around-operatorwith negative values #394 - Pre emptive fix for
space-around-operatorwith percentage values #425 no-trailing-zeronow works as expected with 0 values after a decimal #439- Percentage values are now correctly handled and reported in the
shorthand-valuesrule #435 function-name-formatno longer incorrectly reports on valid default CSS & Sass functions #442- Corrected a typo in config file documentation #384
Brought to you by
A big thankyou to everyone who reported issues or contributed to the discussion around issues
November 16, 2015
Changes
- Added coveralls code coverage tool, updated relevant tests #351
Fixes
- Added missing
background-clipproperty to the SMACCS sort order #366 - Fixed an issue with negative values in the
shorthand-valuesrule #375 - Fixed an issue where
mixin-name-formatwas attempting to lint extends #396
October 28, 2015
Changes
- Add tests for ignored files when using the CLI #72
Fixes
- Ignored files passed in using the
-iflag are now correctly ignored #129 - Fixed an issue where the
no-url-protocolsrule would ignore the users' config #335 - The
hex-lengthrule now correctly handles short hexes #341 - The
no-url-protocolsrule no longer incorrectly issues warnings for data-urls #340 - The
trailing-semicolonrule no longer incorrectly issues warnings for nested properties #359 - The
space-before-bracerule no longer incorrectly issues warnings for nested properties #361
October 17, 2015
Changes
- Added the missing rules
function-name-format,mixin-name-format,placeholder-name-formatandvariable-name-formatto the default config #315
Fixes
- Corrected an issue with the rule
brace-stylethat would crash sass-lint #301 - Fixed an issue where user configs and options were being ignored or overwritten by default rules #309
October 12, 2015
Lint all the things!
1.3.0 introduces a whole raft of changes, fixes and new rules. Enjoy!
Changes
- Now testing against Node 4 #145
no-duplicate-propertiesnow accepts an exclusion whitelist #156- IDE integrations added to README (Atom & Sublime Text) #163
- Output is now silenced on no errors #141
- Option
config-filewill tell Sass Lint the path to a custom config file. #226 - All rules except indentation now working correctly with
.sasssyntax #258 space-between-parensrule now allows multiline arguments #260empty-line-between-blocksrule now optionally allows single line rulesets #282- The
no-duplicate-propertiesrule exclusion whitelist only works for properties directly after one another. #280
CLI
- -f --format Format flag allows you to specify output format #127
- -o --output Output flag allows you to specify a file to output to #127
Rules
- brace-style
- force-attribute-nesting
- force-element-nesting
- force-pseudo-nesting
- function-name-format
- mixin-name-format
- no-mergeable-selectors
- no-misspelled-properties
- no-qualifying-elements
- no-trailing-zero
- no-transition-all
- no-url-protocols
- no-vendor-prefixes
- placeholder-name-format
- shorthand-values
- url-quotes
- variable-name-format
Fixes
- Capitalised all warning messages #137
- Line endings should now be consistently working cross platform #154
- Fixed issue with non resetting test prefixes #182
- Fixed resetting of test defaults #186
- Documentation fixes #235
- Absolute config paths being converted to relative all the time #223
- Multiple fixes for
.sasssyntax #258 - Fixed an issue with the warning message for
no-qualifying-elements#262 - Fixed a bug in
no-shorthand-valuesrule #263 indentationrule now works with maps and multiline arguments also fixes a few edge cases #104 260
Brought to you by..
- Sam Richard
- Ben Griffith
- Dan Purdy
- Ben Rothman
- Michael Vendivel
- Joshua Clanton
- Kenneth Skovhus
- Nick
- Anders Olsen Sandvik
- Nicolas Fortin
- Alan Souza
A big thankyou to everyone who reported issues or contributed to the discussion around issues
October 5, 2015
Changes
- Lock AST to known good version (#245)
Fixes
- Top level mixins now don't raise an incorrect
mixins before declarationswarning (#227) - Fix an issue with
final-newlinefor the.sasssyntax (#207) - The
placeholder-in-extendrule now works for the.sasssyntax (#199) - The
clean-import-pathsrule now works for the.sasssyntax (#179) - The
extends-before-mixinsrule now works for the.sasssyntax (#193)
September 22, 2015
Fixes
- CLI output formatting now works (#213)
September 19, 2015
Fixes
- Extends rules now work with
.sasssyntax (#189) - Silence output if there are no errors (#170)
- Single line per selector now works with
.sasssyntax (#168) - Custom options no longer overwrite defaults (#159)
- Fix CLI config error (#150)
September 7, 2015
Rockin' Rules and Fixes!
Huge thanks to Ben Griffith and Dan Purdy for their awesome work on getting 1.2.0 out the door and welcome them as collaborators!
Fixes
- Color Keyword with variable names no longer fails (#126)
- Space After Comma rule no longer incorrectly reports end of lines as spaces (#125)
- No longer errors on empty files (#91)
- Update naming of
clean-import-pathsandno-duplicate-properties(#118) - Fix colons in parens being not parsed for
space-before-colon(#98) - Fix issue with
space-after-commaand new lines (#105) - Fix for
space-after-colononly finding some colons (#98) - Fix
clean-import-pathbug when importing CSS (#95) - Fix EOL issues on Windows (#65)
- Fix issue with
mixins-before-declarationsfor strange Gonzales parsing (#80) - Fix typo in
quotesdoc
Changes
New
- Enhance
property-sort-orderwith RECESS, SMACSS, and Concentric default sort orders (#20) - Add Sample Sass Lint config file (#57)
- Add tests for CLI (#72, #108)
- Add ability to write output to file and change output formatting (#48)
- Add ability to specify that configured rules override instead of merge with defaults (#58)
Rules
- no-color-keywords
- variable-for-property
- no-color-literals
- no-duplicate-properties
- border-zero
- no-css-comments
- no-invalid-hex
- empty-args
- hex-notation
- hex-length
- zero-unit
- clean-import-paths
August 31, 2015
CLI Goodness
New
- Add Command Line Interface usage for Sass Lint! (#42)
- Add ability to define custom config path (#47)
- Add ability for config to be found recursively up the directory tree to a user's home directory
Fixes
- Empty line between root-level blocks (#54)
- Bang whitespace include
!defaultflag (#53) - One declaration per line inside arguments (#51)
- Leading zero non-decimal issues (#49)
- Indentation rule with parenthesis (#46)
August 29, 2015
Initial Release!
Rules
- extends-before-mixins
- extends-before-declarations
- placeholder-in-extend
- mixins-before-declarations
- one-declaration-per-line
- empty-line-between-blocks
- single-line-per-selector
- no-empty-rulesets
- no-extends
- no-ids
- no-important
- indentation
- leading-zero
- nesting-depth
- property-sort-order
- space-after-comma
- space-before-colon
- space-after-colon
- space-before-brace
- space-before-bang
- space-after-bang
- space-between-parens
- trailing-semicolon
- final-newline
- no-debug
- no-warn
- quotes