1 | # Changelog
|
2 |
|
3 |
|
4 |
|
5 | ## [4.0.0] - 2017-11-17
|
6 |
|
7 |
|
8 | - Replaces [`prettier-stylelint`](https://github.com/hugomrdias/prettier-stylelint) with a [forked](https://github.com/ismail-syed/prettier-stylelint-formatter) version addressing an [issue](https://github.com/hugomrdias/prettier-stylelint/issues/3) [#23](https://github.com/Shopify/stylelint-config-shopify/pull/23)
|
9 |
|
10 | ### Migration Suggestions
|
11 | - If `stylelint-config-shopify/prettier` is used, please replace `prettier-stylelint` with `prettier-stylelint-formatter`.
|
12 |
|
13 | ```
|
14 | yarn remove prettier-stylelint && yarn add prettier-stylelint-formatter
|
15 | ```
|
16 |
|
17 | ## [3.0.2] - 2017-11-14
|
18 |
|
19 | * `declaration-block-no-redundant-longhand-properties` now allows longhand `grid` properties, see [#21](https://github.com/Shopify/stylelint-config-shopify/pull/21)
|
20 |
|
21 | ## [3.0.1] - 2017-11-13
|
22 |
|
23 | - Removed `position: fixed` from the property value blacklist, see [#18](https://github.com/Shopify/stylelint-config-shopify/pull/18)
|
24 | - Allowed digits in class selector names (e.g. `.rotate180`), see [#17](https://github.com/Shopify/stylelint-config-shopify/pull/17)
|
25 | - Enforce property grouping, see [#10](https://github.com/Shopify/stylelint-config-shopify/pull/10)
|
26 | - Turn off `order/order` [#19](https://github.com/Shopify/stylelint-config-shopify/pull/19)
|
27 |
|
28 | ### tl;dr
|
29 |
|
30 | - Put variables & custom properties at the top (unless anyone feels strongly about this)
|
31 | - Then come weird props, positioning & box model properties
|
32 | - All other properties come after
|
33 | - No specific property order is enforced
|
34 |
|
35 | ### The following patterns are _not_ considered warnings:
|
36 |
|
37 | ```scss
|
38 | .Foo {
|
39 | $foo: 'foo';
|
40 | position: relative;
|
41 | display: block;
|
42 | margin: 10px;
|
43 | color: $foo;
|
44 | }
|
45 |
|
46 | .Foo {
|
47 | $foo: 'foo';
|
48 | position: relative;
|
49 | margin: 10px;
|
50 | display: block;
|
51 | color: $foo;
|
52 | }
|
53 | ```
|
54 |
|
55 | ### The following patterns are considered warnings:
|
56 |
|
57 | ```scss
|
58 | .Foo {
|
59 | position: relative;
|
60 | display: block;
|
61 | $foo: 'foo';
|
62 | color: $foo;
|
63 | }
|
64 |
|
65 | .Foo {
|
66 | $foo: 'foo';
|
67 | color: $foo;
|
68 | position: relative;
|
69 | display: block;
|
70 | }
|
71 | ```
|
72 |
|
73 |
|
74 | ## [2.1.0] - 2017-08-25
|
75 |
|
76 | ### Updated
|
77 | * [stylelint-scss](https://github.com/kristerkari/stylelint-scss) from `1.4.x` to `^2.0.1`
|
78 | * Replaced deprecated `scss/at-mixin-no-argumentless-call-parentheses` rule with its equivalent `scss/at-mixin-argumentless-call-parentheses`
|
79 | * `eslint-plugin-shopify` to the latest version, and updated ESLint to the appropriate version
|
80 |
|
81 | ### Changed
|
82 | * `media-feature-name-no-unknown` to ignore `prefers-reduced-motion`
|
83 |
|
84 | ## [2.0.1] - 2017-07-28
|
85 |
|
86 | ### Changed
|
87 | * Set `selector-max-type` to 1
|
88 |
|
89 | ## [2.0.0] - 2017-07-27
|
90 |
|
91 | ### Added
|
92 |
|
93 | * New plugin:
|
94 | * Added `stylelint-order` which replaces `declaration-block-properties-order`
|
95 |
|
96 | * New rules:
|
97 | * `rule-empty-line-before`
|
98 | * `selector-max-universal`
|
99 | * `at-rule-semicolon-space-before`
|
100 | * `selector-max-attribute`
|
101 | * `selector-max-class`
|
102 | * `selector-max-combinators`
|
103 | * `selector-max-id`
|
104 | * `selector-max-type`
|
105 | * `function-url-scheme-blacklist` (disabled)
|
106 | * `media-feature-name-whitelist` (disabled)
|
107 | * `time-min-milliseconds` (disabled)
|
108 |
|
109 | ### Removed
|
110 |
|
111 | * Deprecated rules:
|
112 | * `block-no-single-line`
|
113 | * `no-indistinguishable-colors`
|
114 | * `declaration-block-no-ignored-properties`
|
115 | * `declaration-block-properties-order`
|
116 | * `function-url-data-uris`
|
117 | * `no-browser-hacks`
|
118 | * `no-unsupported-browser-features`
|
119 | * `media-feature-no-missing-punctuation`
|
120 | * `custom-property-no-outside-root`
|
121 | * `root-no-standard-properties`
|
122 | * `rule-nested-empty-line-before`
|
123 | * `rule-non-nested-empty-line-before`
|
124 |
|
125 |
|
126 | ### Changed
|
127 |
|
128 | * Properties order for shorthand notation with margin, padding, border styles have been updated to follow:
|
129 | ```
|
130 | property: <top> <right> <bottom> <left>
|
131 | ```
|
132 |
|
133 | ## 1.0.0 - 2017-05-29
|
134 | * Initial release
|
135 |
|
136 |
|
137 | [Unreleased]: https://github.com/Shopify/stylelint-config-shopify/compare/v4.0.0...HEAD
|
138 | [4.0.0]: https://github.com/Shopify/stylelint-config-shopify/compare/v3.0.2...v4.0.0
|
139 | [3.0.2]: https://github.com/Shopify/stylelint-config-shopify/compare/v3.0.1...v3.0.2
|
140 | [3.0.1]: https://github.com/Shopify/stylelint-config-shopify/compare/v2.1.0...v3.0.1
|
141 | [2.1.0]: https://github.com/Shopify/stylelint-config-shopify/compare/v2.0.1...v2.1.0
|
142 | [2.0.1]: https://github.com/Shopify/stylelint-config-shopify/compare/v2.0.0...v2.0.1
|
143 | [2.0.0]: https://github.com/Shopify/stylelint-config-shopify/compare/v1.0.0...v2.0.0
|