@primer/stylelint-config 12.7.3-rc.99e67f7 → 12.8.0-rc.b12fbe2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.js +6 -4
  2. package/package.json +6 -6
  3. package/CHANGELOG.md +0 -310
package/index.js CHANGED
@@ -36,7 +36,6 @@ module.exports = {
36
36
  'declaration-block-no-duplicate-properties': [true, {ignore: ['consecutive-duplicates']}],
37
37
  'declaration-block-no-redundant-longhand-properties': null,
38
38
  'declaration-block-no-shorthand-property-overrides': true,
39
- 'declaration-block-semicolon-newline-after': 'always',
40
39
  'declaration-property-value-disallowed-list': {
41
40
  '/^transition/': ['/all/'],
42
41
  '/^background/': ['http:', 'https:'],
@@ -47,13 +46,11 @@ module.exports = {
47
46
  'function-linear-gradient-no-nonstandard-direction': true,
48
47
  'function-no-unknown': null,
49
48
  'keyframes-name-pattern': null,
50
- 'max-line-length': null,
51
49
  'max-nesting-depth': 3,
52
50
  'media-feature-name-no-unknown': null,
53
51
  'media-feature-name-no-vendor-prefix': null,
54
52
  'no-descending-specificity': null,
55
53
  'no-duplicate-selectors': true,
56
- 'no-extra-semicolons': true,
57
54
  'no-invalid-position-at-import-rule': [true, {ignoreAtRules: ['use']}],
58
55
  'number-max-precision': null,
59
56
  'order/properties-order': propertyOrder,
@@ -94,8 +91,13 @@ module.exports = {
94
91
  'selector-no-qualifying-type': true,
95
92
  'selector-pseudo-element-no-unknown': true,
96
93
  'string-no-newline': true,
97
- 'string-quotes': 'single',
98
94
  'unit-no-unknown': true,
99
95
  'value-keyword-case': null,
96
+ 'selector-not-notation': null,
97
+ 'import-notation': ['string'],
98
+ 'annotation-no-unknown': null,
99
+ 'keyframe-selector-notation': ['percentage-unless-within-keyword-only-block'],
100
+ 'media-query-no-invalid': null,
101
+ 'media-feature-range-notation': ['prefix'],
100
102
  },
101
103
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/stylelint-config",
3
- "version": "12.7.3-rc.99e67f7",
3
+ "version": "12.8.0-rc.b12fbe2",
4
4
  "description": "Sharable stylelint config used by GitHub's CSS",
5
5
  "homepage": "http://primer.style/css/tools/linting",
6
6
  "author": "GitHub, Inc.",
@@ -30,11 +30,11 @@
30
30
  "postcss-scss": "^4.0.2",
31
31
  "postcss-value-parser": "^4.0.2",
32
32
  "string.prototype.matchall": "^4.0.2",
33
- "stylelint": "^14.8.0",
34
- "stylelint-config-standard": "25.0.0",
35
- "stylelint-no-unsupported-browser-features": "^5.0.1",
36
- "stylelint-order": "^5.0.0",
37
- "stylelint-scss": "^5.0.1",
33
+ "stylelint": "^15.10.2",
34
+ "stylelint-config-standard": "^34.0.0",
35
+ "stylelint-no-unsupported-browser-features": "^7.0.0",
36
+ "stylelint-order": "^6.0.3",
37
+ "stylelint-scss": "^5.1.0",
38
38
  "tap-map": "^1.0.0"
39
39
  },
40
40
  "devDependencies": {
package/CHANGELOG.md DELETED
@@ -1,310 +0,0 @@
1
- # Changelog
2
-
3
- ## 12.7.3
4
-
5
- ### Patch Changes
6
-
7
- - [#353](https://github.com/primer/stylelint-config/pull/353) [`cdb7ca9`](https://github.com/primer/stylelint-config/commit/cdb7ca90d4c38e429f24db92bf07578ad44d4032) Thanks [@langermank](https://github.com/langermank)! - Add `bgColor-inset` fallback for Primitives v8
8
-
9
- ## 12.7.2
10
-
11
- ### Patch Changes
12
-
13
- - [#343](https://github.com/primer/stylelint-config/pull/343) [`5b975fc`](https://github.com/primer/stylelint-config/commit/5b975fcd45383ecd1dd9145d868a227e4fe3e27a) Thanks [@langermank](https://github.com/langermank)! - Add missing counter btn tokens to no-deprecated-colors
14
-
15
- ## 12.7.1
16
-
17
- ### Patch Changes
18
-
19
- - [#338](https://github.com/primer/stylelint-config/pull/338) [`7cc4c08`](https://github.com/primer/stylelint-config/commit/7cc4c08f6465f495df89fc0609d3cdf012480dec) Thanks [@langermank](https://github.com/langermank)! - Add more tests to `no-deprecated-colors`
20
-
21
- - [#328](https://github.com/primer/stylelint-config/pull/328) [`5ae7400`](https://github.com/primer/stylelint-config/commit/5ae7400340afc2cd21006093ce7b33206a00372e) Thanks [@langermank](https://github.com/langermank)! - Fix failing tests in no-deprecated-colors
22
-
23
- - [#337](https://github.com/primer/stylelint-config/pull/337) [`6bf0fd6`](https://github.com/primer/stylelint-config/commit/6bf0fd624a69b21e48803ba62a5b2b9dc21b8d8c) Thanks [@langermank](https://github.com/langermank)! - Remove inline fallback var for no-deprecated-colors
24
-
25
- - [#332](https://github.com/primer/stylelint-config/pull/332) [`6485cf0`](https://github.com/primer/stylelint-config/commit/6485cf053f502d71a8ce8c407ad01a939038959c) Thanks [@langermank](https://github.com/langermank)! - Updated deprecated json color file
26
-
27
- - [#333](https://github.com/primer/stylelint-config/pull/333) [`485ce04`](https://github.com/primer/stylelint-config/commit/485ce047d75a635134919678a776ea808604cf4a) Thanks [@langermank](https://github.com/langermank)! - Adding more color replacements for deprecated colors
28
-
29
- - [#340](https://github.com/primer/stylelint-config/pull/340) [`4688bb4`](https://github.com/primer/stylelint-config/commit/4688bb4c0ea7975672b76af8706b80278f00f1a4) Thanks [@langermank](https://github.com/langermank)! - add inlineFallback prop to no-deprecated-colors
30
-
31
- - [#322](https://github.com/primer/stylelint-config/pull/322) [`726d7d1`](https://github.com/primer/stylelint-config/commit/726d7d1bf4eac82a032c448cb0be32d5bf66b29a) Thanks [@jonrohan](https://github.com/jonrohan)! - Updating no-deprecated-colors for primitives v8
32
-
33
- - [#334](https://github.com/primer/stylelint-config/pull/334) [`b14c154`](https://github.com/primer/stylelint-config/commit/b14c154174ddd7190e62fe1d26698fc9cfe75c17) Thanks [@langermank](https://github.com/langermank)! - More tests for `no-deprecated-colors`
34
-
35
- - [#339](https://github.com/primer/stylelint-config/pull/339) [`36fade4`](https://github.com/primer/stylelint-config/commit/36fade45bdc431d223165f5d7226c10cf6591d83) Thanks [@langermank](https://github.com/langermank)! - Update plugins to support Primitives v8
36
-
37
- ## 12.7.0
38
-
39
- ### Minor Changes
40
-
41
- - [#294](https://github.com/primer/stylelint-config/pull/294) [`8bdb1d0`](https://github.com/primer/stylelint-config/commit/8bdb1d0a679c32a1782e33feb74bd8993aba5d80) Thanks [@keithamus](https://github.com/keithamus)! - allow for vars defined in scope, or within :root/:host selectors in file
42
-
43
- ## 12.6.1
44
-
45
- ### Patch Changes
46
-
47
- - [#274](https://github.com/primer/stylelint-config/pull/274) [`4ba7018`](https://github.com/primer/stylelint-config/commit/4ba701887351664d8b937483d3d761fa5022f16c) Thanks [@jonrohan](https://github.com/jonrohan)! - Fixing issue in utilities plugin that missed certain classes
48
-
49
- ## 12.6.0
50
-
51
- ### Minor Changes
52
-
53
- - [#272](https://github.com/primer/stylelint-config/pull/272) [`9104062`](https://github.com/primer/stylelint-config/commit/91040626d2195cbb63f1e302ae53acdd4ba5b361) Thanks [@langermank](https://github.com/langermank)! - Add no-experimental-vars plugin
54
-
55
- ## 12.5.0
56
-
57
- ### Minor Changes
58
-
59
- - [#262](https://github.com/primer/stylelint-config/pull/262) [`28a4086`](https://github.com/primer/stylelint-config/commit/28a4086e8c781f76494c7e77b9437046a6f686a6) Thanks [@jonrohan](https://github.com/jonrohan)! - Writing a primer/utilities plugin to look for code that duplicates utilities
60
-
61
- ## 12.4.2
62
-
63
- ### Patch Changes
64
-
65
- - [#258](https://github.com/primer/stylelint-config/pull/258) [`fa48eed`](https://github.com/primer/stylelint-config/commit/fa48eed1af84474fa49bdb7ec861d2c6a3210239) Thanks [@jonrohan](https://github.com/jonrohan)! - Fixing dependencies
66
-
67
- * [#260](https://github.com/primer/stylelint-config/pull/260) [`4f42328`](https://github.com/primer/stylelint-config/commit/4f4232826cd3055e0e9dc49ff16925c47db21863) Thanks [@jonrohan](https://github.com/jonrohan)! - Turning off 'function-no-unknown': null,
68
-
69
- ## 12.4.1
70
-
71
- ### Patch Changes
72
-
73
- - [#256](https://github.com/primer/stylelint-config/pull/256) [`37eb1cb`](https://github.com/primer/stylelint-config/commit/37eb1cbd342590f4c43e37779f657a4b19594eca) Thanks [@jonrohan](https://github.com/jonrohan)! - Remove stylelint peer
74
-
75
- ## 12.4.0
76
-
77
- ### Minor Changes
78
-
79
- - [#232](https://github.com/primer/stylelint-config/pull/232) [`27ddfc9`](https://github.com/primer/stylelint-config/commit/27ddfc98f93ed898552bb62aa0926d35497dda72) Thanks [@jonrohan](https://github.com/jonrohan)! - Creating a responsive-widths plugin to keep fixed widths smaller than the minimum viewport size
80
-
81
- * [#253](https://github.com/primer/stylelint-config/pull/253) [`0edeee0`](https://github.com/primer/stylelint-config/commit/0edeee07b1e7ef51bcd0942c65d98131ac384887) Thanks [@jonrohan](https://github.com/jonrohan)! - Changing this peerDependency to be any
82
-
83
- ## 12.3.3
84
-
85
- ### Patch Changes
86
-
87
- - [#218](https://github.com/primer/stylelint-config/pull/218) [`c03be7d`](https://github.com/primer/stylelint-config/commit/c03be7da1126123c079d86e00a2158a913e015f8) Thanks [@jonrohan](https://github.com/jonrohan)! - [Bug fix] Catching values with dots in them
88
-
89
- * [#217](https://github.com/primer/stylelint-config/pull/217) [`5bb2834`](https://github.com/primer/stylelint-config/commit/5bb28342a6194dfdd4fbf5197682367ea54792b7) Thanks [@jsoref](https://github.com/jsoref)! - Spelling fixes
90
-
91
- ## 12.3.2
92
-
93
- ### Patch Changes
94
-
95
- - [#215](https://github.com/primer/stylelint-config/pull/215) [`66b16ae`](https://github.com/primer/stylelint-config/commit/66b16ae2edd81f8c8949f83c96d7011e5d395cc0) Thanks [@jonrohan](https://github.com/jonrohan)! - Making linter pick up separate function groups
96
-
97
- ## 12.3.1
98
-
99
- ### Patch Changes
100
-
101
- - [#213](https://github.com/primer/stylelint-config/pull/213) [`2a27f86`](https://github.com/primer/stylelint-config/commit/2a27f86868b1f4717100a1f0897cdaefb1dd6be7) Thanks [@jonrohan](https://github.com/jonrohan)! - Fixing an issue where the new spacing plugin isn't traversing child sectors.
102
-
103
- ## 12.3.0
104
-
105
- ### Minor Changes
106
-
107
- - [#191](https://github.com/primer/stylelint-config/pull/191) [`71c7985`](https://github.com/primer/stylelint-config/commit/71c79853b679b674c1d27686f8d2168660b24a45) Thanks [@jonrohan](https://github.com/jonrohan)! - Refactoring the primer/spacing plugin to better match results
108
-
109
- ## 12.2.0
110
-
111
- ### Minor Changes
112
-
113
- - [#170](https://github.com/primer/stylelint-config/pull/170) [`b56fcd1`](https://github.com/primer/stylelint-config/commit/b56fcd1bce90d2e3e1621ef7af7545c52c935579) Thanks [@jonrohan](https://github.com/jonrohan)! - Moving config from primer/css's [stylelint.config.cjs](https://github.com/primer/css/blob/c65be7f0c8b0fb6e1ba406b5d35c6073df161a33/stylelint.config.cjs) file to this package.
114
-
115
- * [#168](https://github.com/primer/stylelint-config/pull/168) [`d6ff2b9`](https://github.com/primer/stylelint-config/commit/d6ff2b94ff0d309c1b79e783e6ee1b2f87a375ff) Thanks [@jonrohan](https://github.com/jonrohan)! - Extending stylelint-config-standard and removing defaults
116
-
117
- - [#170](https://github.com/primer/stylelint-config/pull/170) [`b56fcd1`](https://github.com/primer/stylelint-config/commit/b56fcd1bce90d2e3e1621ef7af7545c52c935579) Thanks [@jonrohan](https://github.com/jonrohan)! - Adding config from the [stylelint-scss recommended config](https://github.com/stylelint-scss/stylelint-config-recommended-scss/blob/82d51c399ddaa2f9d282e419399dd2028f47830c/index.js).
118
-
119
- ### Patch Changes
120
-
121
- - [#181](https://github.com/primer/stylelint-config/pull/181) [`23e438a`](https://github.com/primer/stylelint-config/commit/23e438a7a9062550baa696cafbb186dc78b723f5) Thanks [@jonrohan](https://github.com/jonrohan)! - Turning off scss/dollar-variable-default
122
-
123
- ## 12.1.1
124
-
125
- ### Patch Changes
126
-
127
- - [#161](https://github.com/primer/stylelint-config/pull/161) [`48c4afc`](https://github.com/primer/stylelint-config/commit/48c4afc1913863136d62967653697323f8da57b7) Thanks [@dependabot](https://github.com/apps/dependabot)! - Bump @primer/primitives from 6.1.0 to 7.0.1
128
-
129
- ## 12.1.0
130
-
131
- ### Minor Changes
132
-
133
- - [#150](https://github.com/primer/stylelint-config/pull/150) [`4af1647`](https://github.com/primer/stylelint-config/commit/4af16474148d96fba5567068280a9ffe6e7a80ba) Thanks [@jonrohan](https://github.com/jonrohan)! - Making all be first in property order
134
-
135
- * [#151](https://github.com/primer/stylelint-config/pull/151) [`d7c8b2b`](https://github.com/primer/stylelint-config/commit/d7c8b2b908b113fa14c7637dfced34610a3bcfac) Thanks [@jonrohan](https://github.com/jonrohan)! - Adding [string-quotes](https://stylelint.io/user-guide/rules/list/string-quotes) rule to config
136
-
137
- ### Patch Changes
138
-
139
- - [#146](https://github.com/primer/stylelint-config/pull/146) [`214362c`](https://github.com/primer/stylelint-config/commit/214362c0e3c9449a5ff7d3bd047018493043d3c0) Thanks [@dependabot](https://github.com/apps/dependabot)! - Bump @primer/css from 13.2.0 to 16.3.0
140
-
141
- ## 12.0.1
142
-
143
- ### Patch Changes
144
-
145
- - [#132](https://github.com/primer/stylelint-config/pull/132) [`b672367`](https://github.com/primer/stylelint-config/commit/b6723679606bb8d39e75025ae17ace9f1c3e2631) Thanks [@jonrohan](https://github.com/jonrohan)! - Updating no-deprecated-colors plugin for edge cases
146
-
147
- ## 12.0.0
148
-
149
- ### Major Changes
150
-
151
- - [#129](https://github.com/primer/stylelint-config/pull/129) [`653d596`](https://github.com/primer/stylelint-config/commit/653d596072b897b265b093aac4cd5c143e61410e) Thanks [@jonrohan](https://github.com/jonrohan)! - Renaming the package to use org scope. This is a breaking change, you'll need to uninstall `stylelint-config-primer` and reinstall `@primer/stylelint-config`.
152
-
153
- ### Patch Changes
154
-
155
- - [#130](https://github.com/primer/stylelint-config/pull/130) [`f495a56`](https://github.com/primer/stylelint-config/commit/f495a563a9e809252630466088eb94177e6c0be4) Thanks [@jonrohan](https://github.com/jonrohan)! - Updating @primer/primitives to 5.0 release candidate
156
-
157
- ## 11.1.1
158
-
159
- ### Patch Changes
160
-
161
- - [`3a4654b`](https://github.com/primer/stylelint-config/commit/3a4654b1b7920d71e1284ff78a3bedff932e66a3) [#111](https://github.com/primer/stylelint-config/pull/111) Thanks [@jonrohan](https://github.com/jonrohan)! - Fixing the primer/colors and primer/borders rules
162
-
163
- ## 11.1.0
164
-
165
- ### Minor Changes
166
-
167
- - [`e83f61c`](https://github.com/primer/stylelint-config/commit/e83f61cef3bf1df1d9420662594040efdcb86c89) [#99](https://github.com/primer/stylelint-config/pull/99) Thanks [@jonrohan](https://github.com/jonrohan)! - Create a `no-deprecated-colors` rule that looks for deprecated css color variables from primer/primitives.
168
-
169
- ### Patch Changes
170
-
171
- - [`581f40a`](https://github.com/primer/stylelint-config/commit/581f40a4aacb45db5426b82d4a2434e81eb032e2) [#105](https://github.com/primer/stylelint-config/pull/105) Thanks [@jonrohan](https://github.com/jonrohan)! - Adding reporting to the linter to know how many variables are replaced
172
-
173
- ## 10.0.1
174
-
175
- ### Patch Changes
176
-
177
- - [`aa76171`](https://github.com/primer/stylelint-config/commit/aa76171fc5c9c308fcd9d7f7285c8fbdb2c18a7b) [#90](https://github.com/primer/stylelint-config/pull/90) Thanks [@jonrohan](https://github.com/jonrohan)! - Updating the no-undefined-variables lint for the new color-variables mixin.
178
-
179
- ## 10.0.0
180
-
181
- ### Major Changes
182
-
183
- - [`23a1f15`](https://github.com/primer/stylelint-config/commit/23a1f1599673f2a4f9f28c39da61f42871c05697) [#85](https://github.com/primer/stylelint-config/pull/85) Thanks [@koddsson](https://github.com/koddsson)! - Replace deprecated "blacklist" rules for "disallow list" rules.
184
-
185
- See https://stylelint.io/user-guide/rules/at-rule-blacklist and http://stylelint.io/user-guide/rules/declaration-property-value-disallowed-list/
186
-
187
- ### Patch Changes
188
-
189
- - [`40d9bb8`](https://github.com/primer/stylelint-config/commit/40d9bb867194ae4335846953b5d8706dc7dc7d79) [#86](https://github.com/primer/stylelint-config/pull/86) Thanks [@koddsson](https://github.com/koddsson)! - Allow rules to optionally display a URL with their message.
190
-
191
- ## 9.3.3
192
-
193
- ### Patch Changes
194
-
195
- - [`a339c69`](https://github.com/primer/stylelint-config/commit/a339c698b9ba7ccd01b8cb773dad7a3a14dd13a1) [#81](https://github.com/primer/stylelint-config/pull/81) Thanks [@BinaryMuse](https://github.com/BinaryMuse)! - Update globby to v11
196
-
197
- ## 9.3.2
198
-
199
- ### Patch Changes
200
-
201
- - [`d18cfbf`](https://github.com/primer/stylelint-config/commit/d18cfbfefc25be6ae38f73132552d2f3c62c4d02) [#79](https://github.com/primer/stylelint-config/pull/79) Thanks [@BinaryMuse](https://github.com/BinaryMuse)! - Add additional verbose logging to `no-undefined-vars`
202
-
203
- * [`d18cfbf`](https://github.com/primer/stylelint-config/commit/d18cfbfefc25be6ae38f73132552d2f3c62c4d02) [#79](https://github.com/primer/stylelint-config/pull/79) Thanks [@BinaryMuse](https://github.com/BinaryMuse)! - Fix handling of edge-cases in `no-undefined-vars`
204
-
205
- - [`bb07673`](https://github.com/primer/stylelint-config/commit/bb076732aa216fcb56e411b8dd7477efc89f7f8a) [#76](https://github.com/primer/stylelint-config/pull/76) Thanks [@BinaryMuse](https://github.com/BinaryMuse)! - Set the default verbose option for `no-scale-colors` to false
206
-
207
- ## 9.3.1
208
-
209
- ### Patch Changes
210
-
211
- - [`df11e2d`](https://github.com/primer/stylelint-config/commit/df11e2d912913346e0499f7eac901cdfcb83f38c) [#74](https://github.com/primer/stylelint-config/pull/74) Thanks [@BinaryMuse](https://github.com/BinaryMuse)! - Add primer/no-scale-colors to the list of exported plugins
212
-
213
- ## 9.2.1
214
-
215
- ### :bug: Bug fixes
216
-
217
- - Fix slow runtime by caching variable definitions in `primer/no-undefined-vars` rule
218
- - Fix duplicate errors in `primer/no-undefined-vars` rule
219
-
220
- ## 9.2.0
221
-
222
- ### :rocket: Enhancements
223
-
224
- - New `primer/no-undefined-vars` to prohibit usages of undefined CSS variables
225
-
226
- ## 9.1.0
227
-
228
- ### :rocket: Enhancements
229
-
230
- - The `primer/colors`, `primer/borders`, and `primer/box-shadow` rules now allow CSS color variables with the correct functional names (e.g. `var(--color-text-primary)`). #62
231
-
232
- ## 9.0.0
233
-
234
- ### :boom: Breaking Change
235
-
236
- - `primer/variables` is no longer supported; please use the `primer/colors`, `primer/borders`, `primer/box-shadow`, `primer/spacing`, and `primer/typography` rules instead. #50
237
-
238
- ### :rocket: Enhancements
239
-
240
- - The new `primer/colors` rule enforces color variable usage in `color`, `background-color`, and `fill` properties
241
- - The new `primer/borders` rule enforces border variable usage in border CSS props
242
- - The new `primer/box-shadow` rule enforces `$box-shadow*` variables
243
- - The new `primer/spacing` rule enforces `$spacer-*` variables in margin and padding props
244
- - The new `primer/typography` rule enforces typography variable use in `font-family`, `line-height`, and `font-weight` props
245
- - Variable replacements for autofixing are automatically detected in variable data from Primer CSS (see: https://github.com/primer/css/pull/949) #52
246
- - It is now possible to define variable rules using functions that take the variables, as in:
247
- ```js
248
- module.exports = createVariableRule('primer/whatever', ({variables}) => {
249
- /* do something with variables here */
250
- })
251
- ```
252
- - It's also now possible to provide rule _overrides_ in local stylelint configs as functions:
253
- ```js
254
- module.exports = {
255
- extends: '@primer/stylelint-config',
256
- rules: {
257
- 'primer/colors': [true, {
258
- rules: ({variables, rules}) => {
259
- /* do something with variables and/or rules here */
260
- return rules
261
- }]
262
- }
263
- })
264
- ```
265
- - This release adds support for an optional `singular: true` flag to rule configs, which skips the parsing of individual values in the matched properties. We use this in `primer/box-shadow` to prevent multiple warnings for a single value like `box-shadow: inset 0 1px $blue` (before there would be 4 separate ones!).
266
-
267
- ### :bug: Bug fixes
268
-
269
- - Use `requirePrimerFile()` when loading `dist/variables.json` so that we can access the right file when running _within_ the `@primer/css` repo.
270
- - Walk only declarations (`prop: value`) in rules (blocks with selectors, _not_ `@rules`), and skip linting for declarations nested in `@each`, `@for`, `@function`, and `@mixin` blocks, since those can define their own variables and we can't reliably assert their values.
271
- - Allow `$*-shadow` variable patterns in `primer/box-shadow` to match `$btn-active-shadow` and `$form-control-shadow`
272
- - Allow `color: inherit` in `primer/colors`
273
- - Allow `$em-spacer-*` in `padding` and `margin` properties
274
- - Allow (and auto-fix!) negative spacer variables in `margin` properties
275
- - Make `primer/colors` smarter re: `background` property shorthand values (allowing positions and image `url(*)` values)
276
- - Remove `100%` from allowed values for `border-radius`, and suggest `50%` instead
277
- - Prohibit negative spacer values in `padding` properties
278
- - Allow `$h000-size` for marketing 😬
279
-
280
- ## 2.0.0
281
-
282
- :boom: **The following updates are breaking changes**, since code that disables the deprecated rule will now produce linting errors. Please update your `stylelint-disable` statements accordingly.
283
-
284
- - Replaced `selector-no-id: true` with `selector-max-id: 0`
285
- - Replaced `selector-no-type: true` with `selector-max-type: 0`
286
-
287
- The rest of the changes should not introduce new linting errors:
288
-
289
- - Updated: moved [browserslist](https://github.com/ai/browserslist) spec to `package.json`
290
- - Updated: using the [`no-unsupported-browser-features` plugin](https://github.com/ismay/stylelint-no-unsupported-browser-features) instead of the deprecated `no-unsupported-browser-features` rule
291
- - Removed: `media-feature-no-missing-punctuation`
292
- - Updated: replaced `rule-nested-empty-line-before` and `rule-non-nested-empty-line-before` with `rule-empty-line-before`
293
-
294
- ## 1.4.0
295
-
296
- - Updated: Development dependencies are any version `*`
297
- - Removed: `selector-class-pattern` from config. https://github.com/primer/stylelint-config/pull/11
298
-
299
- ## 1.3.0
300
-
301
- - Added: `length-zero-no-unit` to disallow zero values with units eg `0px`
302
-
303
- ## 1.2.0
304
-
305
- - Removed: We don't need `scss/at-extend-no-missing-placeholder` anymore taken care of by `at-rule-blacklist`
306
- - Added: Adding `selector-no-type` to the rules
307
-
308
- ## 1.0.0
309
-
310
- - Creating a sharable config object