Skip to content

Commit

Permalink
Fixed incorrect severity level for declaration-block-properties-order
Browse files Browse the repository at this point in the history
  • Loading branch information
hudochenkov committed Nov 28, 2016
1 parent b4c5477 commit 67888f0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
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.1
* Fixed incorrect severity level for `declaration-block-properties-order` which is called from `declaration-block-property-groups-structure`

## 0.2.0
* Breaking: Renamed `property-groups-structure` to `declaration-block-property-groups-structure`
* Added `declaration-block-properties-specified-order` rule
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "stylelint-order",
"version": "0.2.0",
"version": "0.2.1",
"description": "A collection of order related linting rules for stylelint.",
"keywords": [
"stylelint-plugin",
Expand Down
3 changes: 3 additions & 0 deletions rules/declaration-block-property-groups-structure/index.js
Expand Up @@ -31,6 +31,9 @@ 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];

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

Expand Down

0 comments on commit 67888f0

Please sign in to comment.