Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sass-lint

Package Overview
Dependencies
Maintainers
3
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sass-lint - npm Package Versions

134

1.9.0

Diff

Changelog

Source

v1.9.0

August 18, 2016

Fixes

  • Fixed an issue with the indentation rule when it encountered at-rules with no block immediately preceding a map #779 #783
  • Fixed an issue in single-lint-per-selector where inline comments were seen as selectors #789
  • Fixed an issue with interpolation in placeholders within the bem-depth rule #782
  • Removed duplicated code from no-mergeable-selectors to helper methods

Documentation

  • Fixed typos in no-vendor-prefixes rule documentation #787
  • Added link to Visual Studio extension #815

New Rules

  • Added the no-color-hex rule to disallow all hexadecimal colour definitions #754

Updates

  • Gonzales-pe updated to version 3.4.4 which fixes a lot of longstanding issues see the Changelog
danpurdy
published 1.8.2 •

Changelog

Source

v1.8.2

June 23, 2016

Unfortunately it seems a reversion snuck into gonzales-pe's latest version so we're pinning it back where it was until it's fixed. Sorry..

danpurdy
published 1.8.1 •

Changelog

Source

v1.8.1

June 23, 2016

Parser patching

Gonzales-pe had a few important updates so we chose to do a patch release to make sure everyone gets to benefit from less parse errors as soon as possible!

Fixes

  • Fixed an issue in shorthand-values where values within parenthesis would be ignored #748
  • Corrected the documentation for property-units #740
  • Fixed an issue where config files were not being recursively searched for #756

Updates

danpurdy
published 1.8.0 •

Changelog

Source

v1.8.0

June 17, 2016

We're gonna need a bigger boat

Indentation

A lot of work on the indentation rule is present in 1.8 including the following:

  • Tabs are now supported and can be used as a valid option in your config #592
  • LF and CRLF are now supported for both spaces and tabs.
  • .sass support is now included (Could be a little buggy due to some discrepancies in the AST) #611
  • Mixed spaces and tabs warnings are now correctly informing you if you've specified that you'll use spaces and it detects tabs. #382
  • Indenting of multiline properties in media queries etc is now supported #426

Fixes

  • Fixed an issue with interpolated properties in the shorthand-values rule #669
  • Corrected the name of the pseudo-element rule #682
  • Corrected the name of the no-empty-rulesets rule #684
  • Corrected the name of the no-trailing-zero rule #685
  • Fixed an issue where partially matching rules affected each others severity levels #687
  • Fixed an issue with nested properties in the no-misspelled-properties #352
  • Fixed an issue with interpolated properties in the no-misspelled-properties #679
  • Fixed an issue with interpolated selectors in the no-mergeable-selectors #703
  • Added the absolute path module to fix an issue with Node 0.10 #706
  • Added a new method and updated gulp-sass-lint to fix an config files and ignored files not working correctly #452
  • Fixed an issue with the !important flag raising a lint warning within the variable-for-property rule #714
  • Fixed an issue where sass-lint would try to lint a directory with a .scss or .sass extension, now sass-lint will only attempt to lint files :tada: #719 & #555
  • Fixed an issue where Sass color functions would raise lint warnings in the no-color-keywords rule #717
  • Fixed an unhandled error with the pseudo-element rule #671

Changes

  • Added flexbox and outline properties to the recess order preset #666
  • Added missing pseudo classes to our pseudo class master list #675
  • Added pascal case format to all name format rules #678
  • Included files in your config file can now be an array similar to the ignored files option #668
  • Added PR and issue templates #692
  • Now testing on Node v6 #699
  • Added the ignore-non-standard option to the no-vendor-prefixes rule. This allows you to blanket ignore the vendor prefixes on any non standard properties #702
  • The url-quotes rule now highlights the beginning of the detect rather than the end #712
  • All helper tests have been split and rearranged for ease of use when developing #322
  • Moved away from our Gonzales-pe-sl fork back to gonzales-pe as we've made changes to the main AST now #722

New Rules

  • Added pseudo-element rule to enforce the use of single colons in pseudo classes and double colons in pseudo elements. #662
  • Added no-universal-selectors rule to warn against the use of universal selectors (*) #694
  • Added no-attribute-selectors rule to warn against the use of attribute selectors #694
  • Added no-combinators rule to warn against the use of combinators #694
  • Added attribute-quotes rule to enforce the use of the use of quotes in attribute values #707
  • Added no-disallowed-properties rule to warn against the use of certain properties. #546
danpurdy
published 1.7.0 •

Changelog

Source

v1.7.0

April 27, 2016

You wait months for one release and then four come along in a week!

Fixes

  • Fixed an issue with final newline not registering correctly for .sass syntax #627 & #630.
  • Fixed an issue with placeholder-name-format generating warnings on variables used as placeholder names.
  • Fixed the empty-args rule being wrongly labeled as no-empty-args in lint warnings/errors #625
  • Fixed an issue with no-color-literals incorrectly flagging variable names and map identifiers that shared their names with color literals #538
  • CLI examples corrected thanks to alxndr - #649

Changes

  • no-color-literals now includes two extra options allow-map-identifiers and allow-variable-identifiers which allow you to fine tune your use of color literals in map identifiers/variables on top of the existing functionality see the docs
  • Updated to gonzales-pe-sl v3.2.8
bgriffith
published 1.6.2 •

Changelog

Source

v1.6.2

April 22, 2016

Fixes

  • Fix brace-style rule incorrectly flagging @imports as single-line statements #634
  • Fix brace-style rule not allowing multiline parameters #632
  • no-misspelled-properties now correctly ignores vendor prefixes #606
  • Now correctly strips double-barreled vendor prefixes such as -moz-osx-
bgriffith
published 1.6.1 •

Changelog

Source

v.1.6.1

The update that time forgot

  • Issues publishing to npm
danpurdy
published 1.6.0 •

Changelog

Source

v1.6.0

April 21, 2016

The long lost 1.6 update

WARNING

  • We've moved to the latest version of gonzales-pe and then onto our own fork in which we've fixed our issues with CRLF etc. All of our tests are passing but there may be unforeseen regressions in gonzales that we will aim to fix. If you find a problem like this please report it to us and we'll investigate further. You can then decide to keep your sass-lint dependency to 1.5.1 if you so choose.

Changes

  • Updated all rules to work with the new Gonzales-pe 3.2.x release #495

No breaking changes in the sense that all the rules are the same and pass the same tests or more BUT many did involve a complete re write.

  • Now using gonzales-pe-sl 3.2.7 fork
  • Update the no-mergeable-selectors rule to ignore certain situations and work a little more reliably across codebases
  • Added BEM conventions to all naming rules #614
  • Added Appveyor CI for testing against CRLF line endings on Windows

CLI

  • Add max warnings option to the CLI --max-warnings #568

New Rules

  • no-trailing-whitespace rule added #605

Fixes

  • Fixed parsing error when using interpolated values #44, #184, #210, #222, #321, #486,
  • Fixed parsing error when using the !global flag #56
  • Having - within a class name will no longer return a parse error #229
  • Fixed parsing error when using extrapolated variable as extend name #313
  • Fixed an un-handled error thrown from the indentation rule #389
  • Fixed an issue with final newline rule for sass #445
  • Updated indentation rule to work with CRLF (indentation is mainly scss for the moment) #524
  • Fixed parsing error when using nested maps #531
  • Fixed parsing error when using variables for placeholder name #532
  • Fixed issue with dots in filenames #541
  • Fixed use of modulo operator in SCSS syntax #565
  • Fixed an issue with space-around-operator and unicode #620
  • Fixed an issue with CRLF line endings in the no-trailing-whitespace rule #623

A big thank you to everyone who reported issues or contributed to the discussion around issues and also for everyone bearing with us while we go this monster update ready for you.

bgriffith
published 1.5.1 •

Changelog

Source

v1.5.1

February 26, 2016

Hotfix

Fixes

  • Fix lodash dependancy issue #549
danpurdy
published 1.5.0 •

Changelog

Source

v1.5.0

January 28, 2016

New year blues

Changes

  • AST parse errors will now be returned to the user as Fatal lint errors this prevents un-handled errors breaking builds #459
  • Sass-lint plugin for Brackets added to the README #470
  • Sass-lint plugin for IntelliJ IDEA, RubyMine, WebStorm, PhpStorm, PyCharm, added to the README #484

CLI

  • Updated error codes, whenever errors are present even when cli is using the --no-exit flag a error code of 1 will be output #221

Fixes

  • Fixed an issue where an error of next is undefined would be thrown in the space-after-colon rule #468
  • Fixed an issue with negative z-index values in the space-around-operator rule #454
  • Fixed another minor issue with space-around-operator to prevent a possible crash #483
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc