Skip to content

Commit a18e809

Browse files
committed
Stop enforcing order of rules and at-rules in declarations
1 parent 66f51ff commit a18e809

File tree

4 files changed

+11
-9
lines changed

4 files changed

+11
-9
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,16 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
66

77
## Unreleased
88

9+
## [0.3.0](https://github.com/torchbox/stylelint-config-torchbox/compare/v0.2.0...v0.3.0) (2019-09-23)
10+
11+
### Features
12+
13+
- Stop enforcing order of rules and at-rules in declarations.
14+
15+
### BREAKING CHANGES
16+
17+
- Most if not all of the rules changes in this release are breaking changes. Expect breakage on every minor release until the config reaches v1.0.0.
18+
919
## [0.2.0](https://github.com/torchbox/stylelint-config-torchbox/compare/v0.1.0...v0.2.0) (2019-09-23)
1020

1121
### Features

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ To get the most out of this config, it is assumed that projects have the followi
6868
- [`scss/percent-placeholder-pattern`](https://github.com/kristerkari/stylelint-scss#readme): `^do-not-use-placeholders$`
6969
- [`scss/dollar-variable-no-missing-interpolation`](https://github.com/kristerkari/stylelint-scss#readme)
7070
- [`scss/at-mixin-argumentless-call-parentheses`](https://github.com/kristerkari/stylelint-scss#readme): `always`
71-
- [`order/order`](https://github.com/hudochenkov/stylelint-order): `dollar-variables, custom-properties, type: at-rule, hasBlock: false, declarations, rules, type: at-rule, hasBlock: true`
71+
- [`order/order`](https://github.com/hudochenkov/stylelint-order): `dollar-variables, custom-properties, type: at-rule, hasBlock: false, declarations`
7272

7373
#### Rules of `stylelint-config-standard`
7474

config.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,6 @@ module.exports = {
3737
// @-rules that have no nesting.
3838
{ type: 'at-rule', hasBlock: false },
3939
'declarations',
40-
'rules',
41-
// @-rules that have nested elements, e.g. media queries
42-
{ type: 'at-rule', hasBlock: true },
4340
],
4441
},
4542
};

src/__snapshots__/semver.test.js.snap

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -195,11 +195,6 @@ Object {
195195
"type": "at-rule",
196196
},
197197
"declarations",
198-
"rules",
199-
Object {
200-
"hasBlock": true,
201-
"type": "at-rule",
202-
},
203198
],
204199
],
205200
"property-case": null,

0 commit comments

Comments
 (0)