Skip to content

Commit

Permalink
[ticket/15115] Update grads & single line rules
Browse files Browse the repository at this point in the history
PHPBB3-15115
  • Loading branch information
hanakin committed Mar 25, 2017
1 parent 1f22423 commit 74fcd60
Show file tree
Hide file tree
Showing 3 changed files with 101 additions and 274 deletions.
15 changes: 7 additions & 8 deletions .postcss-sorting.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,16 @@
"order": [
"custom-properties",
"dollar-variables",
{
"type": "at-rule",
"name": "include"
},
"declarations",
"rules",
{
"type": "at-rule",
"name": "media"
},
"rules"
}
],
"properties-order": [
{
Expand Down Expand Up @@ -70,12 +74,7 @@
"background-origin",
"background-size",
"interpolation-mode",
"filter"
]
},
{
"emptyLineBefore": false,
"properties": [
"filter",
"border",
"border-width",
"border-style",
Expand Down
16 changes: 12 additions & 4 deletions .stylelintrc
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,11 @@
}
],
"block-closing-brace-newline-before": "always-multi-line",
"block-closing-brace-space-after": "always-single-line",
"block-closing-brace-space-before": "always-single-line",

"block-no-empty": true,

"block-opening-brace-newline-after": "always",
"block-opening-brace-newline-after": "always-multi-line",
"block-opening-brace-space-after": "always-single-line",
"block-opening-brace-space-before": "always",

Expand Down Expand Up @@ -131,6 +130,11 @@
"property-case": "lower",
"property-no-unknown": true,

"rule-empty-line-before": ["always-multi-line", {
"ignore": ["after-comment"],
"except": ["first-nested"]
}],

"selector-attribute-brackets-space-inside": "never",
"selector-attribute-operator-space-after": "never",
"selector-attribute-operator-space-before": "never",
Expand Down Expand Up @@ -179,12 +183,16 @@
"order/declaration-block-order": [
"custom-properties",
"dollar-variables",
{
"type": "at-rule",
"name": "include"
},
"declarations",
"rules",
{
"type": "at-rule",
"name": "media"
},
"rules"
}
],
"order/declaration-block-properties-specified-order": [
[
Expand Down
Loading

0 comments on commit 74fcd60

Please sign in to comment.