- Added:
at-mixin-no-risky-nesting-selector
rule (#985). - Fixed:
property-no-unknown
ignore interpolated properties (#977). - Fixed:
no-unused-private-members
treat hyphens and underscores as equals (#987). - Fixed:
no-global-function-names
report errors inside at-rules (#988). - Fixed:
operator-no-unspaced
ignore operators inside@scope
(#995). - Fixed:
no-duplicate-mixins
allow using the same mixin name in different scope (#997).
Full Changelog: https://github.com/stylelint-scss/stylelint-scss/compare/v6.2.1...v6.3.0
- Fixed: function-no-unknown: fix falsely reported CSS functions (#976).
Full Changelog: https://github.com/stylelint-scss/stylelint-scss/compare/v6.2.0...v6.2.1
- Added:
at-import-partial-extension-allowed-list
rule, and deprecatedat-import-partial-extension-whitelist
rule (#958). - Added:
at-import-partial-extension-disallowed-list
rule, and deprecatedat-import-partial-extension-blacklist
rule (#958). - Fixed:
no-unused-private-members
check variables used as parameters and skip files using@import
(#957). - Fixed:
no-unused-private-members
refactor variable search to match regex in atRules params and declaration values (#962). - Fixed:
operator-no-unspaced
fix data uri in background shorthand (#968). - Fixed:
at-rule-conditional-no-parentheses
remove extra autofix space (#969). - Fixed:
function-no-unknown
handle functions inside interpolation (#970). - Fixed:
operator-no-unspaced
fix function calls inside interpolation (#972). - Fixed:
at-function-named-arguments
handle interpolation in ignored function names (#973). - Fixed:
at-import-no-partial-leading-underscore
fix version in deprecation message (#974).
Full Changelog: https://github.com/stylelint-scss/stylelint-scss/compare/v6.1.0...v6.2.0
- Added:
no-unused-private-members
rule (#884). - Added: support end positions for warnings (#899, #900, #901, #902, #903, #904, #905, #906, #907, #908, #909, #910, #911, #912, #913, #914, #915, #916, #917, #918, #919, #920, #921, #922, #923, #925, #926, #927, #928, #929, #930, #932, #933, #934, #935, #936, #937, #938, #939, #940).
- Fixed:
function-calculation-no-interpolation
allow calc function interpolation in SassScript (#947) - Fixed:
property-no-unknown
support deeper nested properties (#948)
Full Changelog: https://github.com/stylelint-scss/stylelint-scss/compare/v6.0.0...v6.1.0
- Added:
stylelint@16
support. - Removed:
stylelint@14
andstylelint@15
support.
Full Changelog: https://github.com/stylelint-scss/stylelint-scss/compare/v5.3.2...v6.0.0
- Fixed:
function-no-unknown
false negatives for functions with namespace (#888) - Fixed:
at-root-no-redundant
check selector list for parent selectors (#886)
Full Changelog: https://github.com/stylelint-scss/stylelint-scss/compare/v5.3.1...v5.3.2
- Fixed: improve
block-no-redundant-nesting
autofix (#883).
Full Changelog: https://github.com/stylelint-scss/stylelint-scss/compare/v5.3.0...v5.3.1
- Added:
block-no-redundant-nesting
rule (#872). - Added:
load-no-partial-leading-underscore
rule, and deprecatedat-import-no-partial-leading-underscore
rule (#867). - Added: autofix to
at-root-no-redundant
rule (#860). - Added: autofix to
at-use-no-redundant-alias
rule (#866). - Fixed:
at-root-no-redundant
check if all selectors followed by@at-root
include '&' outside interpolation (#870). - Fixed: add
styleLintType: "parseError"
whenparseSelector
fails (#858).
Full Changelog: https://github.com/stylelint-scss/stylelint-scss/compare/v5.2.1...v5.3.0
- Fixed: add missing
known-css-properties
dependency (#857).
Full Changelog: https://github.com/stylelint-scss/stylelint-scss/compare/v5.2.0...v5.2.1
- Added:
at-root-no-redundant
rule to ban unnecessary@at-root
rule (#846). - Added:
property-no-unknown
rule to disallow unknown properties. (#847). - Added:
at-use-no-redundant-alias
rule to disallow redundant namespace aliases (#848). - Added:
function-calculation-no-interpolation
rule to forbid interpolation in calc functions (#849).
Full Changelog: https://github.com/stylelint-scss/stylelint-scss/compare/v5.1.0...v5.2.0
- Added:
function-disallowed-list
rule support to ban specific built-in functions (#422, #844).
Full Changelog: https://github.com/stylelint-scss/stylelint-scss/compare/v5.0.1...v5.1.0
- Fixed:
function-no-unknown
ignore empty function names (#826).
Full Changelog: https://github.com/stylelint-scss/stylelint-scss/compare/v5.0.0...v5.0.1
- Removed:
Babel
dependency to remove an extra build step and reduce complexity
- Fixed: docs - small formatting fixes
- Removed:
dlv
dependency
Full Changelog: https://github.com/stylelint-scss/stylelint-scss/compare/v4.6.0...v4.7.0
- Fixed: docs - fix broken links and wording tweaks
- Removed: Lodash dependency
Full Changelog: https://github.com/stylelint-scss/stylelint-scss/compare/v4.5.0...v4.6.0
- Fixed:
operator-no-unspaced
make data uri regex less strict (#767). - Changed:
operator-no-unspaced
add support for:has
(#768). - Changed:
function-no-unknown
add support for@use
(#773).
- Added: support for stylelint version 15.
- Added:
at-rule-no-unknown
andat-each-key-value-single-line
rules support for end positions (#655, #689). - Fixed:
at-function-pattern
andat-mixin-pattern
, fix warnings to range only one line (#639). - Fixed:
at-import-partial-extension
autofix incorrectly replacing the filename (#643). - Fixed:
media-feature-value-dollar-variable
add support for@use
(#715). - Fixed:
function-quote-no-quoted-strings-inside
bug with autofix (#740).
- Added: options ignore: "after-dollar-variable" to
dollar-variable-empty-line-before
(#604) - Fixed: Make filenames with dots work with
at-import-partial-extension
rule (#612) - Added:
meta
property for all rules (#602) - Added:
at-import-partial-extension
autofix only when"never"
(#608)
- Added:
function-no-unknown
rule (#591). - Updated:
stylelint
peer dependency version to^14.5.1
(required by thefunction-no-unknown
rule).
- Added:
at-use-no-unnamespaced
rule (#569). - Added:
dollar-variable-no-namespaced-assignment
rule (#570). - Changed:
at-each-key-value-single-line
add support for Sass modules (#580).
- Fixed:
operator-no-unspaced
false positive when using a loop (#575). - Fixed:
operator-no-unspaced
don't check operators from data URIs (#574). - Updated:
parseSelector
function to match the one in stylelint repo (#567). - Fixed:
no-global-function-names
removed checks functions that cause warnings for global CSS functions (min, max, filter) (#566).
- Removed:
stylelint@13
support. - Added:
stylelint@14
support.
- Changed:
no-global-function-names
handle interpolated values and add mappings for color functions.
- Fixed:
comment-no-empty
remove duplicate rule name from rule's rejected message and improve readme. - Fixed:
at-rule-no-unknown
remove duplicate rule name from rule's rejected message.
- Changed:
dollar-variable-first-in-block
to support@use
and@forward
when using theignore: ["imports"]
option. - Fixed:
selector-nest-combinators
throwing an error when certain type of nesting was used. - Fixed:
dimension-no-non-numeric-values
throwing an error for certain type of unitless interpolation.
- Added:
ignoreDefaults
option tono-duplicate-dollar-variables
rule.
- Added:
selector-no-redundant-nesting-selector
addignoreKeywords
option to ignore certain keywords that can be used in Less or some other non-Scss syntax. - Fixed:
comment-no-loud
fix a bug where the rule was only checking for comments that were in the beginning of the file.
- Updated:
postcss-value-parser
dependency and dev dependencies to latest versions.
- Fixed:
function-color-relative
false positives for CSSfilter
property.
- Added:
comment-no-empty
rule.
- Fixed:
operator-no-unspaced
don't warn for negative numbers inside a function call in interpolated values.
- Added:
no-global-function-names
rule. - Added:
dollar-variable-first-in-block
rule. - Added:
dollar-variable-empty-line-after
rule. - Fixed:
function-color-relative
,function-quote-no-quoted-strings-inside
andfunction-unquote-no-unquoted-strings-inside
point the warning to the function name.
- Changed:
no-duplicate-dollar-variables
do not warn for duplicate variables that are in different scopes. A dollar variable is now considered a duplicate if it shadows a variable of the same name (see the Sass documentation). - Added:
media-feature-value-dollar-variable
new optionignore: ["keywords"]
to not warn when the media feature value is a keyword value likenone
,dark
,fine
,srgb
. - Added:
double-slash-comment-empty-line-before
new optionsexcept: ["inside-block"]
andignore: ["inside-block"]
. - Fixed:
operator-no-unspaced
do not find operators in valid unquoted URLs.
- Fixed:
operator-no-unspaced
ignore operators inside@at-root
.
- Fixed:
at-import-partial-extension
don't warn for urls that have commas in them.
- Added: support for stylelint version 13.
- Fixed: avoid possible breaking changes in the future by not using stylelint's internal utility functions.
- Added: support for stylelint version 12.
- Fixed: duplicate warnings in
at-rule-no-unknown
rule.
- Fixed:
at-rule-conditional-no-parentheses
don't warn for function calls. - Fixed:
map-keys-quotes
ignore math operators inside map values. - Fixed:
operator-no-unspaced
was looking for operators inside@forward
and@use
.
- Added:
no-duplicate-mixins
rule. - Added:
at-rule-no-unknown
support for Sass'@forward
and@use
.
- Fixed:
selector-nest-combinators
warning for@keyframes
.
- Added: support for stylelint version 11.
- Fixed: broken linting reporting for
dimension-no-non-numeric-values
rule.
- Added:
at-if-no-null
rule. - Added:
at-import-partial-extension
rule. - Added:
at-rule-conditional-no-parentheses
rule. - Added:
dimension-no-non-numeric-values
rule.
- Fixed:
selector-nest-combinators
rule throwing an error when using nested props.
- Fixed:
map-keys-quotes
warning for unquoted numeric keys.
- Fixed:
selector-no-union-class-name
throwing an error when using nested@
-rules.
- Fixed:
selector-no-union-class-name
false positives for id, attribute, and pseudo selectors.
- Added:
selector-no-union-class-name
rule. - Added:
function-color-relative
rule. - Added:
comment-no-loud
rule. - Added:
map-keys-quotes
rule. - Fixed: typo in error message for
at-else-empty-line-before
anddollar-variable-empty-line-before
rules.
- Added:
function-unquote-no-unquoted-strings-inside
rule. - Fixed: wrong message name for
at-each-key-value-single-line
rule.
- Added:
at-each-key-value-single-line
rule. - Added:
function-quote-no-quoted-strings-inside
rule.
- Fixed:
double-slash-comment-empty-line-before
autofix not working in certain situations.
- Added: support for stylelint version 10.
- Fixed:
dollar-variable-colon-newline-after
no longer warns for multiline variables that use!default
.
- Fixed:
operator-no-unspaced
no longer warns for valid absolute urls and urls with interpolation.
- Fixed: handle SCSS interpolation in
selector-nest-combinators
rule.
- Fixed: error messages for
selector-nest-combinators
rule.
- Added:
selector-nest-combinators
rule.
- Updated:
postcss-selector-parser
dependency to 5.0.0 (major version bump) with a memory leak fix and other bug fixes.
- Fixed:
double-slash-comment-whitespace-inside
fix error being thrown when using two backslashes inside a string.
- Fixed:
operator-no-unspaced
no longer warns for relative url paths.
- Fixed:
at-function-named-arguments
was not correctly handling functions inside Sass maps.
- Added:
at-mixin-argumentless-call-parentheses
autofix (#280). - Fixed:
partial-no-import
correctly handle import parameters with urls (#283).
- Fixed: Account for hyphens in function names (
at-function-parentheses-space-before
) and mixin (at-mixin-parentheses-space-before
) names.
- Fixed:
at-function-named-arguments
correctly parse function arguments with trailing commas.
- Added:
at-function-named-arguments
addignoreFunctions
option. - Fixed:
at-function-named-arguments
correctly parse data uris as function parameters.
- Added:
no-dollar-variables
rule. - Added:
ignoreInside
andignoreInsideAtRules
options tono-duplicate-dollar-variables
rule. - Fixed:
operator-no-unspaced
no longer warns forunicode-range
property.
- Fixed: compatibility with non css syntaxes for
operator-no-newline-after
andoperator-no-newline-before
rules.
- Fixed: compatibility with non css syntaxes.
- Fixed:
operator-no-newline-before
andoperator-no-unspaced
rules were throwing an error when using CSS custom properties.
- Added:
no-duplicate-dollar-variables
rule.
- Fixed:
at-function-named-arguments
now ignores Sass maps.
- Removed: Node.JS 4.x support. Node.js 6.x or greater is now required (#213).
- Added:
at-else-empty-line-before
autofix (#221). - Added:
at-else-if-parentheses-space-before
autofix (#222). - Added:
at-function-parentheses-space-before
autofix (#223). - Added:
at-mixin-parentheses-space-before
autofix (#224). - Added:
dollar-variable-empty-line-before
autofix (#226). - Added:
dollar-variable-colon-space-after
autofix (#227). - Added:
dollar-variable-colon-space-before
autofix (#227). - Added:
at-else-closing-brace-space-after
autofix (#228). - Added:
at-if-else-closing-brace-space-after
autofix (#228). - Added:
at-else-closing-brace-newline-after
autofix (#229). - Added:
at-if-closing-brace-newline-after
autofix (#229). - Added:
double-slash-comment-empty-line-before
autofix (#230). - Added:
dollar-variable-colon-newline-after
autofix (#231).
- Added:
at-least-one-space
option todollar-variable-colon-space-after
rule. - Fixed:
dollar-variable-colon-newline-after
now does not require a newline for Sass maps and multiline variables with parentheses whenalways-multi-line
option is used.
- Added: support for stylelint version 9.
- Fixed:
dollar-variable-colon-newline-after
now allows multiline variables whenalways
option is used.
- Added:
dollar-variable-default
rule.
- Added:
at-function-named-arguments
rule. - Added:
at-mixin-named-arguments
rule.
- Added:
at-else-if-parentheses-space-before
rule. - Added:
at-function-parentheses-space-before
rule. - Added:
at-mixin-parentheses-space-before
rule.
- Fixed:
selector-no-redundant-nesting-selector
now handles multiple nested selectors.
This version updates stylelint to version 8 and removes 2 rules that were deprecated in earlier versions.
- Breaking changes:
- Updated: stylelint dependency from version 7 to version 8.
- Changed: stylelint is now listed in
peerDependencies
instead ofdependencies
. This means that you need to havestylelint
installed in your project before usingstylelint-scss
. - Changed: white/blacklists and ignore* options to be case sensitive by default. See stylelint/stylelint#2709
- Removed: 2 deprecated rules
at-import-no-partial-extension
at-mixin-no-argumentless-call-parentheses
- Fixed:
operator-no-unspaced
support escaped operators by handling them insassValueParser
. - Fixed:
declaration-nested-properties
support escaped selectors by checking for escaped characters inparseNestedPropRoot
.
- Fixed:
at-rule-no-unknown
add missing export toruleName
. - Fixed:
at-rule-no-unknown
add options validation.
- Added:
at-rule-no-unknown
rule.
- Fixed:
at-if-closing-brace-newline-after
: support@elseif
.
- Fixed:
at-mixin-no-argumentless-call-parentheses
messages
- Fixed: false positives in inline comment detecting by
findCommentsInRaws
if a comment is the first/last in a file/line - Fixed:
findCommentsInRaws
error in function detection
- Fixed: mixed import names for
at-else-closing-brace-space-after
andat-else-empty-line-before
rules. - Fixed: false positives for nested props rules (
:not()
-like selectors, strings, numbers).
- Added:
at-else-closing-brace-newline-after
rule. - Added:
at-else-closing-brace-space-after
rule. - Added:
at-if-closing-brace-newline-after
rule. - Added:
at-if-closing-brace-space-after
rule. - Added:
at-else-empty-line-before
rule. - Added:
declaration-nested-properties
rule. - Added:
declaration-nested-properties-no-divided-groups
rule. - Added:
dollar-variable-empty-line-before
rule. - Added:
ignore: "local"|"global"
to thedollar-variable-pattern
rule. - Added:
docs
folder tonpm
package. - Removed:
src
folder fromnpm
package. - Removed: NodeJS 0.12.x support, stylelint-scss now requires NodeJS > 4.2.1 LTS or greater
- Fixed: parsing
-
and+
at the operation start inoperator-
rules. - Fixed:
findCommentsInRaws
false positives on comments inside strings (applicable to rulesdouble-slash-comment-inline
,double-slash-comment-whitespace-inside
,operator-no-unspaced
).
- Fixed: parsing
%
character byoperator-
rules. - Fixed: false positives on
operator-
rules.
- Fixed:
findCommentsInRaws
fail on parsing selectors likep:not(.not-p)
(applicable to rulesdouble-slash-comment-inline
,double-slash-comment-whitespace-inside
,operator-no-unspaced
). - Fixed: 'double-slash-comment-whitespace-inside' false positives on empty comments (e.g.
//
). - Fixed:
findCommentsInRaws
giving wrong column number (applicable to rulesdouble-slash-comment-inline
,double-slash-comment-whitespace-inside
,operator-no-unspaced
).
- Fixed:
findCommentsInRaws
for multiline CSS comments and text for //-comments (double-slash-comment-
rules andoperator-no-unspaced
rule).
- Added:
at-mixin-argumentless-call-parentheses
rule (with "always"/"never" behavior as a replacement forat-mixin-no-argumentless-call-parentheses
). - Added:
dollar-variable-colon-newline-after
rule. - Added:
dollar-variable-colon-space-after
rule. - Added:
dollar-variable-colon-space-before
rule. - Added:
double-slash-comment-empty-line-before
rule. - Added:
double-slash-comment-inline
rule. - Added:
double-slash-comment-whitespace-inside
rule. - Added:
operator-no-newline-after
rule. - Added:
operator-no-newline-before
rule. - Added:
operator-no-unspaced
rule. - Deprecated:
at-mixin-no-argumentless-call-parentheses
. - Fixed:
partial-no-import
failing when linting a code string (not in an actual file, e.g. via stylelilnt Node API). - Updated stylelint dependency to version 7.
- Fixed:
at-function-pattern
,at-mixin-pattern
failing if there are parens inside a parameters list.
- Added:
partial-no-import
rule. - Added:
media-feature-value-dollar-variable
rule. - Added:
at-import-partial-extension-blacklist
rule. - Added:
at-import-partial-extension-whitelist
rule. - Deprecated:
at-import-no-partial-extension
rule. - Fixed:
dollar-variable-no-missing-interpolation
was throwing an error on older Node.js versions.
- Fixed: newlines inside braces in
at-function-pattern
,at-mixin-pattern
. - Fixed: false positives and false negatives in
selector-no-redundant-nesting-selector
.
- Added:
at-mixin-no-argumentless-call-parentheses
rule. - Added:
at-import-no-partial-leading-underscore
rule. - Added:
at-import-no-partial-extension
rule. - Added:
percent-placeholder-pattern
rule. - Fixed:
selector-no-redundant-nesting-selector
no longer warns about BEM syntax. - Fixed: bug causing rules to ignore severity levels
warning
/error
and reportignore
instead.
- Added:
at-extend-no-missing-placeholder
rule. - Added:
at-function-pattern
rule. - Added:
at-mixin-pattern
rule. - Added:
dollar-variable-no-missing-interpolation
rule. - Added:
dollar-variable-pattern
rule. - Added:
selector-no-redundant-nesting-selector
rule.