UNPKG

canonical

Version:

Canonical code style linter and formatter for JavaScript, SCSS and CSS.

257 lines (192 loc) 14.3 kB
# Sass Lint Changelog ## v1.3.3 **November 16, 2015** **Changes** * Added coveralls code coverage tool, updated relevant tests [#351](https://github.com/sasstools/sass-lint/pull/351) **Fixes** * Added missing `background-clip` property to the SMACCS sort order [#366](https://github.com/sasstools/sass-lint/issues/366) * Fixed an issue with negative values in the `shorthand-values` rule [#375](https://github.com/sasstools/sass-lint/issues/375) * Fixed an issue where `mixin-name-format` was attempting to lint extends [#396](https://github.com/sasstools/sass-lint/issues/396) ## v1.3.2 **October 28, 2015** **Changes** * Add tests for ignored files when using the CLI [#72](https://github.com/sasstools/sass-lint/issues/72) **Fixes** * Ignored files passed in using the `-i` flag are now correctly ignored [#129](https://github.com/sasstools/sass-lint/issues/129) * Fixed an issue where the `no-url-protocols` rule would ignore the users' config [#335](https://github.com/sasstools/sass-lint/issues/335) * The `hex-length` rule now correctly handles short hexes [#341](https://github.com/sasstools/sass-lint/issues/341) * The `no-url-protocols` rule no longer incorrectly issues warnings for data-urls [#340](https://github.com/sasstools/sass-lint/issues/340) * The `trailing-semicolon` rule no longer incorrectly issues warnings for nested properties [#359](https://github.com/sasstools/sass-lint/pull/359) * The `space-before-brace` rule no longer incorrectly issues warnings for nested properties [#361](https://github.com/sasstools/sass-lint/pull/361) ## v1.3.1 **October 17, 2015** **Changes** * Added the missing rules `function-name-format`, `mixin-name-format`, `placeholder-name-format` and `variable-name-format` to the default config [#315](https://github.com/sasstools/sass-lint/issues/315) **Fixes** * Corrected an issue with the rule `brace-style` that would crash sass-lint [#301](https://github.com/sasstools/sass-lint/issues/301) * Fixed an issue where user configs and options were being ignored or overwritten by default rules [#309](https://github.com/sasstools/sass-lint/issues/309) ## v1.3.0 **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](https://github.com/sasstools/sass-lint/pull/145#issuecomment-138744764) * `no-duplicate-properties` now accepts an exclusion whitelist [#156](https://github.com/sasstools/sass-lint/pull/156) * IDE integrations added to README (Atom & Sublime Text) [#163](https://github.com/sasstools/sass-lint/pull/163) * Output is now silenced on no errors [#141](https://github.com/sasstools/sass-lint/issues/141) * Option `config-file` will tell Sass Lint the path to a custom config file. [#226](https://github.com/sasstools/sass-lint/issues/226) * All rules except indentation now working correctly with `.sass` syntax [#258](https://github.com/sasstools/sass-lint/pull/258) * `space-between-parens` rule now allows multiline arguments [#260](https://github.com/sasstools/sass-lint/issues/260) * `empty-line-between-blocks` rule now optionally allows single line rulesets [#282](https://github.com/sasstools/sass-lint/issues/282) * The `no-duplicate-properties` rule exclusion whitelist only works for properties directly after one another. [#280](https://github.com/sasstools/sass-lint/issues/280) **CLI** * [-f --format]() Format flag allows you to specify output format [#127](https://github.com/sasstools/sass-lint/issues/127) * [-o --output]() Output flag allows you to specify a file to output to [#127](https://github.com/sasstools/sass-lint/issues/127) **Rules** * [brace-style](https://github.com/sasstools/sass-lint/issues/36) * [force-attribute-nesting](https://github.com/sasstools/sass-lint/blob/master/docs/rules/force-attribute-nesting.md) * [force-element-nesting](https://github.com/sasstools/sass-lint/blob/master/docs/rules/force-element-nesting.md) * [force-pseudo-nesting](https://github.com/sasstools/sass-lint/blob/master/docs/rules/force-pseudo-nesting.md) * [function-name-format](https://github.com/sasstools/sass-lint/blob/master/docs/rules/function-name-format.md) * [mixin-name-format](https://github.com/sasstools/sass-lint/blob/master/docs/rules/mixin-name-format.md) * [no-mergeable-selectors](https://github.com/sasstools/sass-lint/blob/master/docs/rules/no-mergeable-selectors.md) * [no-misspelled-properties](https://github.com/sasstools/sass-lint/blob/master/docs/rules/no-misspelled-properties.md) * [no-qualifying-elements](https://github.com/sasstools/sass-lint/blob/master/docs/rules/no-qualifying-elements.md) * [no-trailing-zero](https://github.com/sasstools/sass-lint/blob/master/docs/rules/no-trailing-zero.md) * [no-transition-all](https://github.com/sasstools/sass-lint/blob/master/docs/rules/no-transition-all.md) * [no-url-protocols](https://github.com/sasstools/sass-lint/blob/master/docs/rules/no-url-protocols.md) * [no-vendor-prefixes](https://github.com/sasstools/sass-lint/blob/master/docs/rules/no-vendor-prefixes.md) * [placeholder-name-format](https://github.com/sasstools/sass-lint/blob/master/docs/rules/placeholder-name-format.md) * [shorthand-values](https://github.com/sasstools/sass-lint/blob/master/docs/rules/shorthand-values.md) * [url-quotes](https://github.com/sasstools/sass-lint/blob/master/docs/rules/url-quotes.md) * [variable-name-format](https://github.com/sasstools/sass-lint/blob/master/docs/rules/variable-name-format.md) **Fixes** * Capitalised all warning messages [#137](https://github.com/sasstools/sass-lint/issues/137) * Line endings should now be consistently working cross platform [#154](https://github.com/sasstools/sass-lint/pull/154) * Fixed issue with non resetting test prefixes [#182](https://github.com/sasstools/sass-lint/issues/182) * Fixed resetting of test defaults [#186](https://github.com/sasstools/sass-lint/issues/186) * Documentation fixes [#235](https://github.com/sasstools/sass-lint/pull/235) * Absolute config paths being converted to relative all the time [#223](https://github.com/sasstools/sass-lint/issues/223) * Multiple fixes for `.sass` syntax [#258](https://github.com/sasstools/sass-lint/pull/258) * Fixed an issue with the warning message for `no-qualifying-elements` [#262](https://github.com/sasstools/sass-lint/pull/262) * Fixed a bug in `no-shorthand-values` rule [#263](https://github.com/sasstools/sass-lint/issues/263) * `indentation` rule now works with maps and multiline arguments also fixes a few edge cases [#104](https://github.com/sasstools/sass-lint/issues/104) [260](https://github.com/sasstools/sass-lint/issues/260) **Brought to you by..** * [Sam Richard](https://github.com/Snugug) * [Ben Griffith](https://github.com/bgriffith) * [Dan Purdy](https://github.com/DanPurdy) * [Ben Rothman](https://github.com/benthemonkey) * [Michael Vendivel](https://github.com/mven) * [Joshua Clanton](https://github.com/joshuacc) * [Kenneth Skovhus](https://github.com/skovhus) * [Nick](https://github.com/MethodGrab) * [Anders Olsen Sandvik](https://github.com/Andersos) * [Nicolas Fortin](https://github.com/zallek) * [Alan Souza](https://github.com/alansouzati) **A big thankyou to everyone who reported issues or contributed to the discussion around issues** ## v1.2.3 **October 5, 2015** **Changes** * Lock AST to known good version ([#245](https://github.com/sasstools/sass-lint/issues/245)) **Fixes** * Top level mixins now don't raise an incorrect `mixins before declarations` warning ([#227](https://github.com/sasstools/sass-lint/issues/227)) * Fix an issue with `final-newline` for the `.sass` syntax ([#207](https://github.com/sasstools/sass-lint/issues/207)) * The `placeholder-in-extend` rule now works for the `.sass` syntax ([#199](https://github.com/sasstools/sass-lint/issues/199)) * The `clean-import-paths` rule now works for the `.sass` syntax ([#179](https://github.com/sasstools/sass-lint/issues/179)) * The `extends-before-mixins` rule now works for the `.sass` syntax ([#193](https://github.com/sasstools/sass-lint/issues/193)) ## v1.2.2 **September 22, 2015** **Fixes** * CLI output formatting now works ([#213](https://github.com/sasstools/sass-lint/pull/213)) ## v1.2.1 **September 19, 2015** **Fixes** * Extends rules now work with `.sass` syntax ([#189](https://github.com/sasstools/sass-lint/pull/189)) * Silence output if there are no errors ([#170](https://github.com/sasstools/sass-lint/pull/170)) * Single line per selector now works with `.sass` syntax ([#168](https://github.com/sasstools/sass-lint/pull/168)) * Custom options no longer overwrite defaults ([#159](https://github.com/sasstools/sass-lint/pull/159)) * Fix CLI config error ([#150](https://github.com/sasstools/sass-lint/pull/153)) ## v1.2.0 **September 7, 2015** Rockin' Rules and Fixes! Huge thanks to [Ben Griffith](https://github.com/bgriffith) and [Dan Purdy](https://github.com/DanPurdy) 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](https://github.com/sasstools/sass-lint/issues/126)) * Space After Comma rule no longer incorrectly reports end of lines as spaces ([#125](https://github.com/sasstools/sass-lint/issues/125)) * No longer errors on empty files ([#91](https://github.com/sasstools/sass-lint/issues/91)) * Update naming of `clean-import-paths` and `no-duplicate-properties` ([#118](https://github.com/sasstools/sass-lint/issues/118)) * Fix colons in parens being not parsed for `space-before-colon` ([#98](https://github.com/sasstools/sass-lint/issues/98)) * Fix issue with `space-after-comma` and new lines ([#105](https://github.com/sasstools/sass-lint/issues/105)) * Fix for `space-after-colon` only finding some colons ([#98](https://github.com/sasstools/sass-lint/issues/98)) * Fix `clean-import-path` bug when importing CSS ([#95](https://github.com/sasstools/sass-lint/issues/95)) * Fix EOL issues on Windows ([#65](https://github.com/sasstools/sass-lint/issues/65)) * Fix issue with `mixins-before-declarations` for strange Gonzales parsing ([#80](https://github.com/sasstools/sass-lint/issues/80)) * Fix typo in `quotes` doc **Changes** * Clean up tests ([#123](https://github.com/sasstools/sass-lint/issues/123), [#110](https://github.com/sasstools/sass-lint/issues/111)) * Clean up ESLint testing * Add tests for helper functions ([#116](https://github.com/sasstools/sass-lint/issues/116)) **New** * Enhance `property-sort-order` with RECESS, SMACSS, and Concentric default sort orders ([#20](https://github.com/sasstools/sass-lint/issues/20)) * Add Sample Sass Lint config file ([#57](https://github.com/sasstools/sass-lint/issues/57)) * Add tests for CLI ([#72](https://github.com/sasstools/sass-lint/issues/72), [#108](https://github.com/sasstools/sass-lint/issues/108)) * Add ability to write output to file and change output formatting ([#48](https://github.com/sasstools/sass-lint/issues/48)) * Add ability to specify that configured rules override instead of merge with defaults ([#58](https://github.com/sasstools/sass-lint/issues/58)) **Rules** * [no-color-keywords](https://github.com/sasstools/sass-lint/issues/101) * [variable-for-property](https://github.com/sasstools/sass-lint/issues/33) * [no-color-literals](https://github.com/sasstools/sass-lint/issues/27) * [no-duplicate-properties](https://github.com/sasstools/sass-lint/issues/28) * [border-zero](https://github.com/sasstools/sass-lint/issues/84) * [no-css-comments](https://github.com/sasstools/sass-lint/issues/85) * [no-invalid-hex](https://github.com/sasstools/sass-lint/issues/82) * [empty-args](https://github.com/sasstools/sass-lint/issues/38) * [hex-notation](https://github.com/sasstools/sass-lint/issues/77) * [hex-length](https://github.com/sasstools/sass-lint/issues/73) * [zero-unit](https://github.com/sasstools/sass-lint/issues/68) * [clean-import-paths](https://github.com/sasstools/sass-lint/issues/29) ## v1.1.0 **August 31, 2015** CLI Goodness **New** * Add Command Line Interface usage for Sass Lint! ([#42](https://github.com/sasstools/sass-lint/issues/42)) * Add ability to define custom config path ([#47](https://github.com/sasstools/sass-lint/issues/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](https://github.com/sasstools/sass-lint/issues/54)) * Bang whitespace include `!default` flag ([#53](https://github.com/sasstools/sass-lint/issues/53)) * One declaration per line inside arguments ([#51](https://github.com/sasstools/sass-lint/issues/51)) * Leading zero non-decimal issues ([#49](https://github.com/sasstools/sass-lint/issues/49)) * Indentation rule with parenthesis ([#46](https://github.com/sasstools/sass-lint/issues/46)) ## v1.0.0 **August 29, 2015** Initial Release! **Rules** * [extends-before-mixins](docs/rules/extends-before-mixins.md) * [extends-before-declarations](docs/rules/extends-before-declarations.md) * [placeholder-in-extend](docs/rules/placeholder-in-extend.md) * [mixins-before-declarations](docs/rules/mixins-before-declarations.md) * [one-declaration-per-line](docs/rules/one-declaration-per-line.md) * [empty-line-between-blocks](docs/rules/empty-line-between-blocks.md) * [single-line-per-selector](docs/rules/single-line-per-selector.md) * [no-empty-rulesets](docs/rules/no-empty-rulesets.md) * [no-extends](docs/rules/no-extends.md) * [no-ids](docs/rules/no-ids.md) * [no-important](docs/rules/no-important.md) * [indentation](docs/rules/indentation.md) * [leading-zero](docs/rules/leading-zero.md) * [nesting-depth](docs/rules/nesting-depth.md) * [property-sort-order](docs/rules/property-sort-order.md) * [space-after-comma](docs/rules/space-after-comma.md) * [space-before-colon](docs/rules/space-before-colon.md) * [space-after-colon](docs/rules/space-after-colon.md) * [space-before-brace](docs/rules/space-before-brace.md) * [space-before-bang](docs/rules/space-before-bang.md) * [space-after-bang](docs/rules/space-after-bang.md) * [space-between-parens](docs/rules/space-between-parens.md) * [trailing-semicolon](docs/rules/trailing-semicolon.md) * [final-newline](docs/rules/final-newline.md) * [no-debug](docs/rules/no-debug.md) * [no-warn](docs/rules/no-warn.md) * [quotes](docs/rules/quotes.md)