Skip to content

Commit

Permalink
Fixed tests for declaration-block-property-groups-structure
Browse files Browse the repository at this point in the history
  • Loading branch information
hudochenkov committed Nov 28, 2016
1 parent 67888f0 commit 743e9ea
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Expand Up @@ -2,6 +2,9 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## 0.2.2
* Fixed tests for `declaration-block-property-groups-structure` which were broken by previous fix ¯\_(ツ)_/¯

## 0.2.1
* Fixed incorrect severity level for `declaration-block-properties-order` which is called from `declaration-block-property-groups-structure`

Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "stylelint-order",
"version": "0.2.1",
"version": "0.2.2",
"description": "A collection of order related linting rules for stylelint.",
"keywords": [
"stylelint-plugin",
Expand Down
6 changes: 4 additions & 2 deletions rules/declaration-block-property-groups-structure/index.js
Expand Up @@ -31,8 +31,10 @@ function rule(expectation, options) {
const cleanedConfig = cleanConfig(expectation);
const runPropertiesOrder = stylelint.rules['declaration-block-properties-order'](cleanedConfig, options);

// set the same severity level
result.stylelint.ruleSeverities['declaration-block-properties-order'] = result.stylelint.ruleSeverities[ruleName];
if (!_.isUndefined(result.stylelint.ruleSeverities) && !_.isUndefined(result.stylelint.ruleSeverities[ruleName])) {
// set the same severity level
result.stylelint.ruleSeverities['declaration-block-properties-order'] = result.stylelint.ruleSeverities[ruleName];
}

// run declaration-block-properties-order rule
runPropertiesOrder(root, result);
Expand Down

0 comments on commit 743e9ea

Please sign in to comment.