Tags: wli/scss-lint
Tags
0.32.0 release * Fix regression in rake task * Fix grammar of lints reported by `SelectorFormat` * Add .projections.json configuration file * Fix regression in `--require` switch that caused custom formatters to not be `require`d before they were created * Fix bug in `BangFormat` where lines without a semicolon would cause an infinite loop
0.31.0 release * Fix regression in default configuration for `QualifyingElement` so that elements with attributes, classes, or ids are disallowed by default * Fix error message for `TrailingSemicolon` where lines without a semicolon would incorrectly be reported as having a space before the semicolon * Fix `BangFormat` linter to not report lints for exclamation points in strings * Update minimum version of `sass` gem to 3.4.1 to fix a parser bug * Fix `DuplicateProperty` not reporting duplicate properties in nested rule sets * Fix `TrailingSemicolon` handling of comma-separated `@import`s * Fix `SelectorFormat` to not allow format of pseudo-selectors to be defined, as they are always hyphenated lowercase * Fix `Indentation` to not crash on `@at-root` directives with comments inside * Add support for disabling/enabling linters via inline comments * Change `IdWithExtraneousSelector` to `IdSelector` and modify behavior to always report a lint when an ID appears as part of a selector. * Fix `DuplicateProperty` to report correct name of duplicated property * Add `smacss` sort order option for `PropertySortOrder` * Add `recess` sort order option for `PropertySortOrder` * Add `allow_leading_underscore` option to `NameFormat` to allow the leading underscore convention to denote private functions * Fix `EmptyLineBetweenBlocks` to allow trailing comments after rule sets (e.g. control comments disabling linters)
0.30.0 release = New Features * Add `VendorPrefixes` linter which ensures only whitelisted vendor-prefixed properties are used * Add `scss_files` configuration option allowing a default set of files to be linted if no files are explicitly specified * Add `BangFormat` linter which enforces spacing around the `!` for `!important` and `!default` * Add `new_line` option to `SpaceBeforeBrace` linter enforcing opening curly braces start on a new line * Add `NestingDepth` linter which ensures selectors are nested only up to a specified maximum depth * Add support to `SelectorFormat` for specifying different conventions for different types of selectors via the `<type>_convention` options * Add `@import` check to `TrailingSemicolon` * Add support for differentiating `@include`s with actual content versus no-content `@include`s in `DeclarationOrder` * Add support for checking the ordering of content within `@include`s * Add `ImportPath` linter which ensures paths for `@import` directives follow a certain format * Add `QualifyingElement` linter which checks for unnecessarily-qualified element selectors * Add `--out` flag which allows the output of the last formatter specified via the `--format` flag to be redirected to a file * Add `--require` flag allowing arbitrary Ruby modules to be loaded (facilitating custom reporters) = Changes * Improve message reported by `PropertySortOrder` to specify the expected sort order * Enforce UTF-8 encoding by default * Change `BEM` convention of `SelectorFormat` `convention` option to `hyphenated_BEM`, and introduce `BEM` format as specified in https://bem.info/method/definitions/ * Prefix all syntax error messages with "Syntax Error:" = Bug Fixes * Fix bug in `SpaceAfterPropertyName`/`TrailingSemicolon` linters where lint would be reported for oneline properties following a selector with interpolation * Fix bug in `SpaceAfterPropertyColon`/`SpaceAfterPropertyName`/`TrailingSemicolon` linters where lint would be reported for one-line properties following a selector with interpolation * Fix `PropertySpelling` linter to check the names of nested properties
0.29.0 release * Update list of known properties (used by `PropertySpelling` lint) * Fix bug where SassScript selectors referring to the current selector would result in a crash * Enhance `TrailingSemicolon` to check for more than one semicolon at the end of a statement * Add `TrailingZero` linter which checks for unnecessary zeros following a decimal point * Fix bug in `EmptyLineBetweenBlocks` linter where lint would incorrectly be reported when comments immediately followed the closing brace of a rule set * Fix bug in `PropertySortOrder` where properties within media queries were not checked for sort order * Fix bug in `UrlQuotes` linter where lint would be reported for data URIs * Add `SelectorFormat` linter which checks that the names of ids, classes, etc. in selectors match a desired convention * Remove `CapitalizationInSelector`, which has been superseded by the more powerful `SelectorFormat` linter * Add JSON formatter * Fix bug in `UnnecessaryParentReference` where selectors with multiple `&` references where one `&` was concatenated would incorrectly report a lint
0.27.0 release * Fix broken `ignore_unspecified` option in `PropertySortOrder` * Add linting of `@include` and `@if`/`@else` blocks in `PropertySortOrder` * Fix `HexValidation` bug incorrectly reporting lints for 8 character hex codes in Microsoft `filter` property * Fix `UnnecessaryParentReference` incorrectly reporting lints for nested selectors with more than one parent reference
0.26.1 release * Fix `TrailingSemicolon` incorrectly reporting `@include`s with block contents * Fix `UnnecessaryParentReference` incorrectly reporting using of `&` with concatenation * Fix `SingleLinePerSelector` crashing for selectors that contained interpolated function calls * Add additional properties to the `concentric` preset order * Fix `LeadingZero` crashing on multi-line strings with interpolation
0.26.0 release = New Features * Add `severity` option allowing the severity level of a lint to be configured * Include linter name in lint description * Add `character` option to `Indentation` linter which allows specifying tabs or spaces as the indentation character of choice * Add `SingleLinePerProperty` linter which checks that properties each reside on their own line * Add support to `PropertySortOrder` to specify a preset sort order via the `order` property * Add [`concentric`](http://rhodesmill.org/brandon/2011/concentric-css/) preset sort order to the `PropertySortOrder` linter * Add `ignore_unspecified` option to `PropertySortOrder` to indicate that unspecified properties in custom sort orderings are to be ignored (i.e. they can appear anywhere) * Add `ignore` option to `Compass::PropertyWithMixin` linter allowing you to not warn for certain properties * Add `ignored_names` option to `CapitalizationInSelector`, allowing you to whitelist certain names as not needing to follow the convention * Add `ignored_types` option to `CapitalizationInSelector`, allowing you to selectively ignore capitalization in certain types of selectors * Add `UnnecessaryParentReference` linter which checks nested selectors for extraneous parent references * Teach `TrailingSemicolon` to report lints for uses of `@extend`, `@include`, or variable declarations without semicolons = Changes * Change CLI to return exit code of `1` if only warnings are reported, or `2` if any errors are reported (was previously `65` for either) * Update `sass` dependency to require 3.3.7 or later (fixes a parsing bug) * Include test files in gem distribution * Rename `TrailingSemicolonAfterPropertyValue` to `TrailingSemicolon` = Bug Fixes * Fix bug in `SpaceBeforeBrace` linter where an erroneous lint would be reported for a brace on its own line * Fix bug in `SpaceAfterComma` where trailing spaces followed by a newline after a comma would incorrectly report a lint * Fix `SingleLinePerSelector` to ignore any selectors that contain interpolation
PreviousNext